Example 2: Modifying the select from jQuery
This example demonstrates how you can modify the contents of the select, and how you should trigger a change() event on the select after you have modified it.
what are your favorite cities?
Amsterdam
Atlanta
Baltimore
Boston
Buenos Aires
Calgary
Chicago
Denver
Dubai
Frankfurt
Hong Kong
Honolulu
Kuala Lumpur
London
Los Angeles
Melbourne
Mexico City
Miami
Minneapolis
Montreal
New York City
Paris
Philadelphia
Rotterdam
San Diego
San Francisco
Sao Paulo
Seattle
Seoul
Shanghai
Singapore
Sydney
Tokyo
Toronto
Vancouver
Washington, DC
You may click and drag cities to order of preference.
add a city?
add
asmSelect homepage at Google Code
Article: Select multiple form fields - Finding a better solution
© 2008 by
Ryan Cramer