changin the value of a form
|
| View previous topic :: View next topic |
| Author |
Message |
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| Is it possible to change the value of a form element from within a link using javascript? i don't want to create a function on which to call |
| |
|
|
|
|
froomzer
Joined: 23 May 2006 Posts: 148
|
| BigDaddy, just put the code you would put in the function into the link's onclick |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| like onClick="document.changeqtyform.QTY.value='0'"? |
| |
|
|
froomzer
Joined: 23 May 2006 Posts: 148
|
| Yes |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| Hmm- that doesn't seem to work |
| |
|
|
froomzer
Joined: 23 May 2006 Posts: 148
|
| Check for JS errors then, and see if the onclick even runs by putting an alert() in there. |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| Can i specify self for the formname? |
| |
|
|
|
|