I've built myself an Ajax framework that is working well. However I want the user to be able to hit the 'Enter' button for certain functions rather than click a button.
I'm aware of 'onsubmit' and 'return false' in classic form processing but that isn't relevant here.
Within the 'button' tag a I have an 'onclick' function but I never want to submit the form as such. All processing is done via Ajax requests. I want the form fields so I need the form.
Hope this makes sense. I want to cancel the automatic submission of the form when 'enter' is hit but there doesn't seem to be a way.
I'm aware of 'onsubmit' and 'return false' in classic form processing but that isn't relevant here.
Within the 'button' tag a I have an 'onclick' function but I never want to submit the form as such. All processing is done via Ajax requests. I want the form fields so I need the form.
Hope this makes sense. I want to cancel the automatic submission of the form when 'enter' is hit but there doesn't seem to be a way.