177
rated 0 times
[
179]
[
2]
/ answers: 1 / hits: 90627
/ 13 Years ago, wed, june 1, 2011, 12:00:00
This is my checkbox HTML code
<input id=termsCheckbox name=termsCheckbox type=checkbox value=terms <?PHP echo $terms; ?> class=checkbox>
this is javascript code
var terms = $(#termsCheckbox);
function validateTerms(){
if(termsCheckbox.checked == false){
terms_div.addClass(terms_error);
return false;
}
else{
terms_div.removeClass(terms_error);
return true;
}
}
I want to check whether checkbox checked or not and if not add a class to terms_div. Please help me to solve this problem. thanks
More From » checkbox