How to Enable / Diable required field validator? [Resolved]

Posted by Laghaterohan under jQuery on 12/30/2010 | Points: 10 | Views : 11105 | Status : [Member] | Replies : 1
Hello,

I want to disable RFV on the click of the radio button....

I am writing following code..
ValidatorEnable(myValidator, false);

I am getting following Error :

Microsoft JScript runtime error: 'style' is null or not an object

How to solve this??


Thanks!

Happy Coding:)

Best Regards,
Rohan Laghate



Responses

Posted by: Laghaterohan on: 12/30/2010 [Member] Starter | Points: 50

Up
0
Down

Resolved
HEY I GOT IT....

i used following code

ValidatorEnable(document.getElementById('<%= myValidator.ClientID %>'),true);


i dont understand where did i went wrong earlier...:)


Thanks!!
Happy Coding:)

Best Regards,
Rohan Laghate

Laghaterohan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response