.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Code Snippets >> JQuery >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Validation for DropDownList with Jquery

Posted By:Rajshree       Posted Date: October 28, 2010    Points: 15    Category: JQuery    URL: http://www.dotnetspark.com  

For adding validation for dropdown we have to create custom validator method which is called for checking dropdown selected value
 



    Validate a DropDownList
   
    

    
    


    
    



We do so by calling the jQuery.validator.addMethod() method. It takes three parameters:

    * name: The name of the method, used to identify and referencing it, must be a valid javascript identifier.
    * method: the actual method implementation, returning true if an element is valid.
    * message: The default message to display for this method.

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend