Searchbar with focusing | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Searchbar with focusing

How to create a searchbar for focusing. <div class=“search”> <input type=“text” id=“search-bar”> <button id=“search-btn”>Search</button> </div> <h1 class=“title”>Skills</h1> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p> <h1 class=“title”>About</h1> <p>Lorem Ipsum is simply dummy text of the printing.</p> If the user search “skills” the web want to focus on that area. How to create that... I know to make searchbox with the entered value will only visible

13th Sep 2021, 6:46 AM
Shanid P
 Shanid P - avatar
2 Answers
+ 1
Like this? (I'm not too good in js)
13th Sep 2021, 7:29 AM
Sousou - avatar
+ 1
Sousou Thank you, Can you make seachbar to get focused without any highlightings...
13th Sep 2021, 8:02 AM
Shanid P
 Shanid P - avatar