dotnetnoob
dotnetnoob

Reputation: 11330

How can I get validation group in javascript event?

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

Answers (1)

RAJESH KUMAR
RAJESH KUMAR

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

Related Questions