views:

56

answers:

1

Hi!

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...

+1  A: 

problem solved - stupid me:)

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

Could you accept this answer, so it will be removed from the 'unanswered questions' list? Thanks.
Jimmy Shelter