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...
problem solved - stupid me:)
some other JS code i wrote did it....
精彩评论