first of type jquery code example Example: select the first elemnt have class in jquery $( ".box" ).first().css( "font-style", "bold" );