manishsawant
MIS
Hi,
I have a hidden variable which is either set to 0 or 1. I have written a javascript function where i check if the hidden field value is 0 then make div display:none else make it inline. This javascript function is called on body onload. When onload is fired then the div becomes inline or none based on the condition but div's default style is inline so it is always visible. I am using ASP.net so first the body onload fires and then the div is rendered. If i call a javascript function on the onload of div then it gives me a error. Can this be handled in some other way.
Thanks,
Manish
I have a hidden variable which is either set to 0 or 1. I have written a javascript function where i check if the hidden field value is 0 then make div display:none else make it inline. This javascript function is called on body onload. When onload is fired then the div becomes inline or none based on the condition but div's default style is inline so it is always visible. I am using ASP.net so first the body onload fires and then the div is rendered. If i call a javascript function on the onload of div then it gives me a error. Can this be handled in some other way.
Thanks,
Manish