-1

I have a google address entry on a form. There is only one enabled input - where the user types in the address.

If they select an entry from the dropdown with a mouse, everything works fine. If they press Enter then the google script does not populate the disabled address field inputs and the form is submitted.

I can see the reason here. Why does a FORM with one text INPUT submit on enter while one with two text INPUTs does not?

There are numerous javascript solutions. Is there a way I can get around this without javascript; by placing some other html control on the form ?

Community
  • 1
  • 1
Rohit Gupta
  • 4,022
  • 20
  • 31
  • 41

1 Answers1

2

As MrUpsidown said, don't use a form. It is not necessary to have a form on an html page. If there is no form, it can not be submitted.

potashin
  • 44,205
  • 11
  • 83
  • 107