Advertisement
sabbirshouvo

Jquery toggole class example

Oct 15th, 2019
446
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.29 KB | None | 0 0
  1. jQuery( document ).ready(function($) {
  2.     let icon = $("#et_search_icon");
  3.     let close = $(".et_close_search_field");
  4.     let tagline = $(".tagline-sicon");
  5.  
  6.     icon.on( "click", function() {
  7.         tagline.addClass('hide');
  8.     });
  9.     close.on( "click", function() {
  10.         tagline.removeClass('hide');
  11.     });
  12. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement