Button Modal

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

I have 5 submit buttons and various text boxes on a web page.

My problem is - I have for example a text box that says:
City:______ <btnLookupCity>

But when the user types in their city and hits <RETURN>, it pushes another
button on the page instead of the button right next to the text box.

I have messed with tabindex and other things and as far as I can tell - by
hitting return in any text box - it auto pushes the FIRST button placed on
the page.

How can I change this without re-laying out my page?
 
use javascript to catch the keypress event and fire the button click when
the user presses enter. There are several "Default Button" controls out
there, just search google.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top