I have tried $("#client.frm").reset();
but it is not working.So how to reset form via jQuery?
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- How to fix IE ClearType + jQuery opacity problem i
- void before promise syntax
- jQuery add and remove delay
Try this code. A complete solution for your answer.
Note, function
form.reset()
will not work if some input tag in the form have attributename='reset'
Clear the form as follows
You can simply clear the form elements within the group. by using this
forms[0]
.Pure JS solution is as follows:
Try this :