Jump to content

onChange alert


xProteuSx

Recommended Posts

I am trying to write a little JavaScript scriptlet, but I need to get this to work in order to figure out what's working and what's not:

 

<select name="category" onChange.alert("yay") >

  <option></option>

  <option value="1">1</option>

  <option value="2">2</option>

</select>

 

Obviously I would like an alert popup that says 'yay' if the user makes a selection from the dropdown ...  thanks.

Link to comment
https://forums.phpfreaks.com/topic/250421-onchange-alert/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.