![]() |
|
|
|
||||||||||
![]() |
|
|
Thread Tools |
|
#1
|
|||
|
|||
|
Disabling and enabling the form text fields
Can I make the form text fields disable and when click on text fields it change
to enable. I try to do that but it not work : Code:
<SCRIPT LANGUAGE="JavaScript">
function enable() {
document.formname.textname.disabled=false;
}
</SCRIPT>
<form name="formname" method="POST" action="">
<input type="text" disabled size="10" name="textname" onclick="enable()">
....
.
<input type="text" size="10" name="textname[]" > how i can deal with it in javascript code (document.formname.(here)) Thanks
|
|
#2
|
|||
|
|||
|
Quote:
<input id="i1" type="text" size="10" name="textname" onclick="this.disabled = true"> <input type="button" name="textname" value="toggle" onclick="this.form.i1.disabled = !this.form.i1.disabled"> </form> J.D. |
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PayPal Option Fields | macdesign | Payment Processing | 5 | Today 5:20 am |
| Enabling Yahoo/MSN support | vincenzo | Keyword Tracker | 11 | Apr 11th 2005 7:00 am |
| Auto completing fields | JenS | Optigold ISP | 7 | Mar 7th 2005 8:31 am |
| Google foraying into new fields ? | nriweb | 6 | Sep 25th 2004 4:28 pm | |
| Form Text Table Background - making it fixed | misohoni | Programming | 3 | Jul 27th 2004 5:19 am |