Return to Snippet

Revision: 15376
at July 2, 2009 16:47 by sveggiani

Initial Code
// Get the value of the selected item 

// Get the text of the selected item
$("#ComboBox option:selected").text()

// Find out when the select value changed
$("#ComboBox").change(function() { /* do something here */ });

// Programmatically set the selected item.

// Modify the list
// Clear the list:

// Add to the list:
$("<option value=’9’>Value 9</option>").appendTo("#ComboBox");

Initial URL

Initial Description

Initial Title
manage select boxes with jQuery

Initial Tags

Initial Language