disabling a button
571157May 15 2007 — edited May 16 2007Hi
I am having a button and I try to make it as enabled while loading..For that,I have used the following script code..
<script type="text/javascript" language="javascript">
function disableobj(obj)
{
document.getElementById(obj).disabled=true;
}
</script>
I called that script functin in load event as
onload="disableobj('p1_x');"
This code is working for text item but not for a button..Can anyone say why it is not working for a button?
Thanks in advance
Fazila