Bootstrap Modal Clear All Fields

[Solved] Bootstrap Modal Clear All Fields | Php Frameworks Drupal - Code Explorer | yomemimo.com
Question : bootstrap modal clear all fields

Answered by : indian-gooner

$('#modal1').on('hidden.bs.modal', function (e) { $(this) .find("input,textarea,select") .val('') .end() .find("input[type=checkbox], input[type=radio]") .prop("checked", "") .end();
})

Source : https://stackoverflow.com/questions/21151044/how-to-clear-all-input-fields-in-bootstrap-modal-when-clicking-data-dismiss-butt | Last Update : Tue, 22 Mar 22

Answers related to bootstrap modal clear all fields

Code Explorer Popular Question For Php Frameworks Drupal