I'm trying to select first <option> from dropdown using jQuery.
In this case absolutely nothing changes:
In this case, the classes "active" and "selected" were added and cleared at once.
And <option> wasn't selected.
In this case absolutely nothing changes:
$("#select_id input:radio:first").attr('checked', true);
In this case, the classes "active" and "selected" were added and cleared at once.
And <option> wasn't selected.
$('div.item:nth-child(1)').addClass("active selected");