first or default in jquery selector code example
Example 1: select first option in dropdown jquery
myElement.find('option:eq(0)').prop('selected', true);
Example 2: select the first elemnt have class in jquery
$( ".box" ).first().css( "font-style", "bold" );