Gilad
Gilad

Reputation:

input text field resets even if cancelling submit

i have a form which onsubmit i return false to cancel the submit action (that works fine). but the problem is that even that the submit action was canceled the value on the text input gets erased from the input somehow...

search_form.onsubmit = submit_listener;
submit_listener = function(e){

    console.log(e);
    return false;   

never had this problem before...

Upvotes: 0

Views: 113

Answers (1)

Gilad
Gilad

Reputation:

problem solved - stupid me:)

some other JS code i wrote did it....

Upvotes: 1

Related Questions