Display Ads On This Blog

Banner Ads on scriptforphp.blogspot.com
Provides free php script for php developer.
Prix: € 5.00

Tuesday, April 28, 2009

how to disable button using javascript

Here is a small example of disable button after clicking on it.






SOURCE CODE


<form name="form1" method="post">
<input type="text" value="Enter value" name="txt1" />
<input type="button" onclick="this.disabled=true" value="CLICK ME" />
</form>

0 comments:

Post a Comment