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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

trigger alert on radio click

Status
Not open for further replies.

TheConeHead

Programmer
Aug 14, 2002
2,106
US
Is there any reason an onclick would not work in a radio button? i.e.

<input type="radio" onclick="alert('Hey!');">

Seems like it should work, but I can not get it to....

[conehead]
 
Nope, that should work fine.
Make sure your not running off a cached version of the page.
Hit View/Source and see if your radio button shows the onclick event in the source that the browser sees.



At my age I still learn something new every day, but I forget two others.
 
If it doesn't work, it's because something else is wrong in your code, or that you're not showing the REAL code copied and pasted in here.

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top