Answers for "class add on a div in different page"

0

class add on a div in different page

<script>
  if (window.location.href == 'http://specific-page.com') {
    $('.existingClass').addClass('newClass');
  };
</script>
Posted by: Guest on September-01-2021

Code answers related to "class add on a div in different page"

Browse Popular Code Answers by Language