Reputation: 11330
I have a button with a validation group.
The button click event calls a jquery function so i get the event to work with. (not using onclientclick)
How do I get the validation group associated with the button using the event?
Any advice would be appreciated.
Upvotes: 0
Views: 1095
Reputation: 517
You can use the below if you want to validate the form before java script executes.
function myFunction()
{
if (Page_ClientValidation(validationgroupname))
{
/*do my work here*/
}
}
Upvotes: 2