I have a select field with some options in it. Now I need to select one of those options with jQuery. But how can I do that when I only know the
select
options
The easiest way to do that is:
Which department does this doctor belong to? Orthopaedics Pathology ENT
$('select[name="dept"]').val('3');
Output: This will activate ENT.