Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

jquery each has class

 $('li').each(function (){
    if($(this).hasClass("active")){
      $(this).css("color", "red");
    }
    else{
      $(this).css("color", "blue");
    }
  });
Comment

PREVIOUS NEXT
Code Example
Javascript :: converting binary to text js 
Javascript :: canvas font colour 
Javascript :: js regex valid name 
Javascript :: get input field inside div jquery 
Javascript :: await settimeout 
Javascript :: bubble sort javascript 
Javascript :: async function fetchJson 
Javascript :: javascript change page title 
Javascript :: import reactdom 
Javascript :: jquery transform scale 
Javascript :: get user location without permission 
Javascript :: generate random numbers in js 
Javascript :: how to add two number using jqueryu 
Javascript :: enable version 12 node glitch 
Javascript :: click anywhere and div hide javascript 
Javascript :: javascript sort chars in string 
Javascript :: javascript endswith 
Javascript :: for char in string javascript 
Javascript :: generate random boolean javascript 
Javascript :: javascript date set weeks 
Javascript :: javascript random number between 
Javascript :: readonly javascript 
Javascript :: regex space javascript 
Javascript :: get device type javascript 
Javascript :: To install the latest version of React: 
Javascript :: useeffect will unmount 
Javascript :: array of objects sahould have unique values 
Javascript :: js reverse array loop 
Javascript :: react center a text 
Javascript :: jquery loop through list element 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =