$(document).ready(function(){
$("#CO_createAccount").click( function (){
if(this.checked){
$(".CO_accountForm").show();
} else {
$(".CO_accountForm").hide();
}
});
});
and I have the css set for “.CO_accountForm” set to “display:none;”
But, I want the hidden element to be visible if javascript is turned off. I assume I can do this by adding a hidden class the above, but how would I go about this?
Thanks!
Remove the
display:noneattribute for the".CO_accountForm"and instead hide/set thedisplay:noneattribute via javascript in thedocument.readyevent.i.e.: