Answers for "class selector jquery get only first element"

1

select the first elemnt have class in jquery

$( ".box" ).first().css( "font-style", "bold" );
Posted by: Guest on November-01-2020
0

get first element by class name jquery

$(".popContent:first").html()
Posted by: Guest on February-02-2021

Code answers related to "class selector jquery get only first element"

Code answers related to "Javascript"

Browse Popular Code Answers by Language