I’m trying to prevent form submit if users has focus on any submit button or input type text (as in a filtering datagrid).
I’m considering 2 options
- replace submit button with some kind of
<p onclick='submitform¶meters'>Add</p> - block the enter key on buttons and some preferred input fields
Is there a better way to do this?
Solution
Link
Question closed