How would I go about adding a button in HTML/JS which adds a search bar right under my search bar.
Something like pic related.
I want it to add a search bar to expand the parameters of the search/
>>117803
Posting my best skeleies for payment
>>117805
>>117808
>>117809
>>117810
>>117811
>>117812
>>117813
>>117814
>>117816
>>117818
>>117803
html:
<div><input id="searchbar1"></input><button id="mybutton"></button></div>
<div><input id="searchbar2" class="hidden"></input></div>
css:
.hidden { display: none; }
js:
document.getElementById('mybutton').addEventListener('click', function() {
document.getElementById('searchbar2').classList.remove('hidden');
});
I hope this makes sense. /wsr/ doesn't have a code tag.