![]() |
| onclick select a radio box |
|
Ennio
|
How can I make when the user click on my text box, to select a radio box?
I'm using cfform. |
||||||||||||
|
|
|||||||||||||
|
Jason101
Forum Regular
|
Ennio,
You just asked this in a previous post, and I gave you an answer: http://forums.hostmysite.com/viewtopic.php?t=4607&highlight= The cfform won't make a difference |
||||||||||||
|
|
|||||||||||||
|
Ennio
|
that did not work for me
|
||||||||||||
|
|
|||||||||||||
|
Jason101
Forum Regular
|
Ennio,
Did you try the code I posted? Because I just tried it again and it worked. Did you mean that the code I posted did not work when you tried it, or it did not accomplish what you want? |
||||||||||||
|
|
|||||||||||||
|
Ennio
|
Jason, your code works in the HTML page alone but when I add it to my code it does not work.
here is my code.
|
||||||||||||||
|
|
|||||||||||||||
|
Jason101
Forum Regular
|
Look at your code:
You have .checked= yes. You need to have it .checked = true Javascript is trying to set .checked to the variable "yes" which doesn't exist. In javascript you can only use true and false. yes or no don't exist. Try that |
||||||||||||||
|
|
|||||||||||||||
|
Ennio
|
I tried that and still doesn't work.
strange.. |
||||||||||||
|
|
|||||||||||||
| onclick select a radio box |
|
||
|


