Tagged: jquery

How do you select a particular option in a SELECT element in jQuery?

- by admin

You can just use val() method:

$('#select').val('the_value');



For checkboxes, radios, and listboxes the command sets the "selected" attribute for those items.


« All tags