[jQuery] checkbox has no properties
Hi,
I check if a checkbox is checked or not when the page is ready, like
this :
$(document).ready(function(){
var vendu = document.refedit.vendu.checked;
if(!vendu)
{
$("#form_vendu").hide("");
}
});
but Firefox always says that document.refedit.vendu has no
properties. In IE, sometimes it's ok, sometimes it has no properties.
If I test my checkbox with a click function, then it's ok.
What am I missing, I can't find where the problem is.
Thanks, Francis.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/