JQuery set a selected by text or value

this little thing was anoying enouth to find
$("#myDropDownList option:selected").text($("#Whatever").val());
$("#myDropDownList option:selected").val($("#Whatever").val());

Comments

Popular posts from this blog

OverTheWire[.com] Bandit Walkthrough - JUST HINT, NO SPOILERS

OverTheWire[.com] Natas Walkthrough - JUST HINT, NO SPOILERS

Bresleveloper's AngularJS Tutorial : Table of Content