How to validate checkbox using jQuery ?checkbox validation using jQuery?

How to validate checkbox using jQuery ?Check if checkbox is checked with jQuery?checkbox validation using jquery?
Today I came across a situation where some of my friends are troubling to find a solution for Check the checkbox checked property using jQuery. Finally I got this pretty simple option.Here our problem was we have a check box “id” is isValid based on this check we have to enable one text box. So here I am giving this answer,it may help many of you …..

 

 

if($("#isValid").is(':checked'))
$("#txtName").show(); // checked
else
$("#txtName").hide(); // unchecked


Leave a Reply

Your email address will not be published. Required fields are marked *