hi,
i have a page with a form that i don't really need the data to be submitted.
so, i don't supply a submit button for the form.
all i need to do is to just validate the data entered by a user. something like "number validation" and etc.. i have a link with onclick javascript to do that.
the problem is that when i press enter while focus is on one of the input control of the form. it seems that it submit the form and the page is refreshed, i don't want this because it reset all the field to empty and the error messages are dissapeared.
how to solve this?
thanks in advance
i have a page with a form that i don't really need the data to be submitted.
so, i don't supply a submit button for the form.
all i need to do is to just validate the data entered by a user. something like "number validation" and etc.. i have a link with onclick javascript to do that.
the problem is that when i press enter while focus is on one of the input control of the form. it seems that it submit the form and the page is refreshed, i don't want this because it reset all the field to empty and the error messages are dissapeared.
how to solve this?
thanks in advance
Comment