How do I empty an input value with jQuery?

前端 未结 6 1482
醉话见心
醉话见心 2020-12-23 18:37

I’m trying to make a modal dialog with images where you can select multiple images. I need to get values from an input and then to empty it, but I cannot empty the input. I

6条回答
  •  醉话见心
    2020-12-23 19:15

    You could try:

    $('input.class').removeAttr('value');
    $('#inputID').removeAttr('value');
    

提交回复
热议问题