How to style a search in the CSS?

0 like 0 dislike
3 views
Please tell me how to make it so when you click on the search icon appeared in the search window, and the icon disappeared?
5ae475d81f70e115217464.jpeg

https://jsfiddle.net/r8c4xd36/
by | 3 views

1 Answer

0 like 0 dislike
When you click on the icon to add a class( in which pre-defined styles,e.g. 'active') to the search window and just hide the icon itself. Well for example so:
$('.btn-search').click(function() { $('.popup').addClass('active'); $(this).addClass('hide'); })
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
3 answers
0 like 0 dislike
2 answers
0 like 0 dislike
3 answers
0 like 0 dislike
2 answers
asked Apr 13, 2019 by Egor4ik1337
110,608 questions
257,186 answers
0 comments
33,771 users