jquery .val('') not working, leaves a 0 instead of clearing the field

后端 未结 0 430
暖寄归人
暖寄归人 2021-01-07 04:23

I have a jquery.number textbox with value 0

When I run $(\'#txt\').val(1); it becomes 1 (so far so good)

When I run $(\'#txt\').val(\'\'); it becomes 0! Not go

相关标签:
回答
  • 消灭零回复
提交回复
热议问题