开发者

input text field resets even if cancelling submit

开发者 https://www.devze.com 2022-12-16 01:38 出处:网络
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

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

精彩评论

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

关注公众号