开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜