Home>

there is an item ≪ a class= "FirstClass SecondClass ThirdClass" > Working element < /a > . When you hover the mouse on this element

  1. The ThirdClass class should be checked -whether this class is present in the class list;
  2. if not present, then it should be added to the list of classes

also want to know how to delete a class from the list of classes. (All these actions should be made in JavaScript and jQuery)

  1. How can I implement the following logic

When you hover the mouse cursor to the menu item (Hover), the text of the menu item becomes fat (the class is added .MenulistItem_selected. ), and when leaving the mouse cursor, the text of the menu item becomes usual (class is removed .MenulistItem_selected. )? I asked the 3rd question, because I'm not sure whether Toggle (It seems that you need a search on the list of classes).