Solution for "how to select first element of class in jquery"

$( ".box" ).first().css( "font-style", "bold" );

select the first elemnt have class in jquery

<script> // jquery $( "tr:first" ).css( "font-style", "bold" ); </script>

select the first elemnt have class in jquery

Similar codes for "how to select first element of class in jquery"


Latest 'Javascript' questions

Added before "how to select first element of class in jquery"