Answers for "jquery: get class list using element id"

1

jquery: get class list using element id

$('#elementID').prop('classList').add('yourClassName')
$('#elementID').prop('classList').remove('yourClassName')
Posted by: Guest on June-23-2020

Code answers related to "jquery: get class list using element id"

Code answers related to "Javascript"

Browse Popular Code Answers by Language