What jQuery is triggered when a user selects a "drop down list" option

Posted by Ankur on Stack Overflow See other posts from Stack Overflow or by Ankur
Published on 2010-05-27T03:58:51Z Indexed on 2010/05/27 4:01 UTC
Read the original article Hit count: 205

Filed under:
|
|

I want to display a different form for different selections of this drop down list:

<label>
    <select name="type" id="type">
<option value="object" selected="selected">Object</option>
<option value="number">Number</option>
<option value="text">Text</option>
<option value="date">Date</option>
<option value="time">Time</option>
<option value="geo">Geospatial</option>
<option value="currency">Currency</option>
</select>
</label>

What would be the jQuery event that is triggered when a user selects one of these options. Would the .click() event be triggered in this case as well?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about events