set idx to 0 select code example
Example: set idx to 0 select
// sets selected index to first item using the DOM
$("select#elem")[0].selectedIndex = 0;
// sets selected index to first item using the DOM
$("select#elem")[0].selectedIndex = 0;