Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stopping " turning into "

Status
Not open for further replies.

MrsKensington

Programmer
Sep 26, 2001
28
GB
i'm trying to get some Javascript working with my form.
I have 2 radiobuttons in a radiogroup and when clicked i want them to call a function called changed...
This is my code
Code:
print radio_group(-name=>"inactivePeople", -values=>\@list, -default=>$inactivePeople, -script=>"onClick=\"printWindow()\"");

but when i look at the HTML generated this is what is printed
Code:
<input type=&quot;radio&quot; name=&quot;inactivePeople&quot; value=&quot;Show&quot; script=&quot;onClick=&quot;printWindow()&quot;&quot; />Show

where as i want it to be
Code:
<input type=&quot;radio&quot; name=&quot;inactivePeople&quot; value=&quot;Show&quot; script=&quot;onClick=&quot;printWindow()&quot;&quot;/>Show

any ideas how to stop this?

thanks Ford? There's an infinite number of monkeys outside wanting to talk to you about a script of Hamlet they've produced!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top