Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.
<form action="foo" method="get" id="myform">
<select name="dept" id="dept">
<option value="1">Option One</option>
<option value="2">Option Two</option>
<option value="3">Option Three</option>
</select>
</form>
$(document).ready(function(){ // when the page is ready we make changes
$('#dept').change(function(){ // when someone changes the selected option
$('option',this).each(function(){ // flip through all the OPTION tags in #dept
if(this.selected){ // find the one that's selected
$('#myform').append('<p>You chose: '+$(this).text()+'</p>');
// append the text used to the end of the form
}
});
});
});
1 to 3 of 3