addClass() jQuery Method

Easily inject new classes using jQuery:

$( ".myEl" ).addClass( "boo ya" );

removeClass

You can also use removeClass() to remove classes. This makes it easy to toggle between two states:

$( ".myEl" ).removeClass("boo").addClass( "ya" );
✖ Clear

🕵 Search Results

🔎 Searching...