SELECT LAST
SELECT FIRST
//Using the value
$('select[name="options"]').find('option[value="3"]').attr("selected",true);
//Using the text
$('select[name="options"]').find('option:contains("Blue")').attr("selected",true);
WebDeveloper Programing PHP, CodeIgniter, HTML5, CSS3, JQUERY, Bootstrap & Scripting Tutorials
0 comments:
Post a Comment