|
For a form to submit on hitting enter, you'd need form action to be present, rather than being set via JavaScript. Otherwise, you're going to need an event handler in every field that will monitor for the enter key and if it fires, execute the JS function you have. You could always re-name the search_criteria field to mSKU instead and get rid of the JS completely, adding a form action of the web-page you need to post your information to. Otherwise... you're not really doing a POST with your code, it's more doing a POST to a web-page which has the GET variables pre-filled.
__________________
The way to success is to assume that there are no impossible things. After all, if you think something is impossible, you will not even try to do it.
How to ask smart questions?
|