Hi,
I have multi-line radTextBox used all over my application. I want to associate a generic validation across all these multi-line radTextBoxes. To accomplish that, I thought of using jQuery to find control of type textarea (found this through firebug) and called my validation function. All this is fine. I'm able to trigger validation. One part where I didn't succeed is in my validation function, I'm using args which is not getting passed when I trigger it through jQuery. Is there a way to get around this problem?
To give you code example, in the below code, args is not defined when I try to add validation dynamically
$('textarea').keypress(function (sender, args) {
ValidateSpecialCharcters(sender, args);
});
function ValidateSpecialCharcters(sender, args) {
if(validation condition fails)
args.set_cancel(true);
}
}
any ideas?
~/Ananth
I have multi-line radTextBox used all over my application. I want to associate a generic validation across all these multi-line radTextBoxes. To accomplish that, I thought of using jQuery to find control of type textarea (found this through firebug) and called my validation function. All this is fine. I'm able to trigger validation. One part where I didn't succeed is in my validation function, I'm using args which is not getting passed when I trigger it through jQuery. Is there a way to get around this problem?
To give you code example, in the below code, args is not defined when I try to add validation dynamically
$('textarea').keypress(function (sender, args) {
ValidateSpecialCharcters(sender, args);
});
function ValidateSpecialCharcters(sender, args) {
if(validation condition fails)
args.set_cancel(true);
}
}
any ideas?
~/Ananth