how to disable button by javascript

today ,i was fooled by the code in javascript so much

 

if(....)

{

 document.getElementById('<%=RequestAssistanceMLRImageButton.ClientID%>').Enabled=false;

}

... i guess the button should be disabled because of the code, how ever ,the result is so rebarbative,

the code does not work at all !

 

in the end , i tried it in this way

 

 

if(....)

{

 document.getElementById('<%=RequestAssistanceMLRImageButton.ClientID%>').disabled=ture;

}

 

then ,the button disabled so docile.

 

God , what the difference? but anyway, the initiator liked the word 'disable', we can do nothing but abey it.

posted on 2008-08-05 18:31  鹤翔九天  阅读(491)  评论(0)    收藏  举报

导航