Saturday, March 31, 2012

text box commands...i think

ok, so i have a textbox and 5 buttons, 4 list different things, and one is the search button...

no when i click enter, and i have text in my tetbox, the page loads, but doesnt do anything, yet when i click search the search function runs..

how do i make it so when a user hits enter on there text box, it runs that function...

Thanks, JustinPlace a simple html textbox in your form, make it hidden.

<input type="text" style="display: none;">

This way, pressing enter should submit the form.
but i dont use <form method="post" action="blabla">

Thanks, Justin
You have to have a form on your page if you're going to make the page work.

0 comments:

Post a Comment