Created
May 26, 2010 19:39
-
-
Save akahn/414945 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function select_towns(towns) { | |
var options = $('#search_town_data option'); | |
towns.split(',').each(function(town_id_string) { | |
options.has('[value='+ town_id_string +']').attr('selected', 'selected'); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment