Solved

Default Buitton when Enter Key Pressed

Posted on 2014-03-07
4
191 Views
Last Modified: 2014-03-07
Hello,

I would like the form on the following page to be submitted when a user presses the enter key.  I know this should be simple (and hopefully will be!), but I simply don't seem to be able to get it to work...

The page can be seen here:

http://www.villasdirect.com

Thanks in advance.
0
Comment
Question by:Nico2011
  • 2
4 Comments
 
LVL 8

Assisted Solution

by:jpgobert
jpgobert earned 500 total points
ID: 39911907
What have you tried?  

Have you tried setting the default button property in your form declaration line?

<form id="form1" class="refno" name="form1" method="post" defaultbutton="searchlocationrentals" action>
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39912150
It seems to work in chrome. There are some warnings in the js console although I don't think that would cause an issue.
0
 
LVL 8

Accepted Solution

by:
jpgobert earned 500 total points
ID: 39912176
Your action attribute doesn't have a value... it was like that when I copied it earlier and forgot to mention it... can you update that and test again?
0
 

Author Closing Comment

by:Nico2011
ID: 39912212
Thank you both - it seems to work - not sure if all the time, but for now - fingers crossed!
0

Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Easy responsive table out of existing table 28 55
Not seen Link button 5 38
HTML5 Get data in table rows 5 28
Save ms data to server side. 19 43
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question