jquery only show the first element with a class code example Example: select the first elemnt have class in jquery $( ".box" ).first().css( "font-style", "bold" );