<div class="input2">
<form action="/browse/room" method="GET">
<input
type="text"
name="search"
class="search2"
placeholder="Search..."
value="<%= searchQuery || '' %>"
/>
<button
type="submit"
style="background-color: #ffffff; border: none"
>
<img class="search-icon2" alt="" src="/img/search.png" />
</button>
</form>
</div>
When I click on this button, every content in any “input” class will be send to my URL
eg: http://localhost:3000/browse/customer/?date=&search=&customer_id=1002&cccd_passport=&first_name=&last_name=&birthday=&gender=&email=&phone=&address=
I just want only content in search bar send to URL. Please help me !!!
Thank you.
i have tried fix my js file but there are not any lines of code that affect the jump link
New contributor
Vũ Nhật Quang is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.