How do I do Textbox Submit
Posted
by Newb
on Stack Overflow
See other posts from Stack Overflow
or by Newb
Published on 2010-05-19T06:39:57Z
Indexed on
2010/05/19
6:40 UTC
Read the original article
Hit count: 147
Hello everyone, I have a search box and a buttion. currently a user enter some text and press the search button. But I want to add another feature that instead of clicking the search button people can hit enter to search. How can I do that?
Here is my code sample:
<form method="post" action="">
<input id="search" name="search" type="text" />
<input id="search_btn" name="search_btn" type="submit" />
</form>
Thanks in advance
© Stack Overflow or respective owner