![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| ||||
| ||||
|
|
Is there a way to specify a default submit button in case there are more than one in a form? |
|
That is, to specify which button will be triggered as default action when pressing Enter in a form field. |
|
Currently I observe only the first submit button appearing in the document order is triggered: |
|
div input type="submit" name="operation" value="Create" input type="submit" name="operation" value="Update" input type="submit" name="operation" value="Delete"></div |
#3
| |||
| |||
|
|
Is there a way to specify a default submit button in case there are more than one in a form? That is, to specify which button will be triggered as default action when pressing Enter in a form field. Currently I observe only the first submit button appearing in the document order is triggered: form action="" div label>Field 1: <input type="text" name="field1"></label></div div label>Field 2: <input type="text" name="field2"></label></div div input type="submit" name="operation" value="Create" input type="submit" name="operation" value="Update" input type="submit" name="operation" value="Delete"></div /form |
![]() |
| Thread Tools | |
| Display Modes | |
| |