Hi,
I have linkbutton with JS validations on onclick event. I need cancel or skip this event dinamically on the client. I cant rewrite logic of this linkbutton. I need disable this event which depend on some conditions from another elements on the page(dropdown, textbox...).
I need something like this.
Example:
function fired from other element, not from linkbutton.
Where is //desible linkbutton onclick event// and //enable linkbutton onclick event// I need help with the code. Thanks
Sorry my bad english
I have linkbutton with JS validations on onclick event. I need cancel or skip this event dinamically on the client. I cant rewrite logic of this linkbutton. I need disable this event which depend on some conditions from another elements on the page(dropdown, textbox...).
I need something like this.
Example:
function fired from other element, not from linkbutton.
Code:
function someFce(linkButtonID)
{
var linkButton = document.getElementById(linkButtonID);
if (//firefox//)
{
if (//something//)
{
//desible linkbutton onclick event//
}
else
{
//enable linkbutton onclick event//
}
}
Sorry my bad english
Comment