Useful commands
Monday, July 4, 2011
How to assign values in dropdown using jquery
This method gets all the select boxes in the view page.
$("select").each(function(key){
if($(this).attr('id')=='first_name') {
$(this).val('my_first_name');
}
});
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment