Jump to content

Recommended Posts

The usual event gang, onclick etc. The best to use is onchange though as it will not do anything if you select the same option.

<select onchange="">

 

Unless your asking about executing the js from within the option tag itself (your question is a bit ambiguous). Then I believe no events are supported by the option tag. However, if you are trying to find the value of the option that the user has selected, you just have to ask what the value of the select tag is. It will equal the selected option tag.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.