Skip to content Skip to sidebar Skip to footer

Form Inside Boostrap Modal Does Not Reset

I am using below click event to reset Form. 'click .resetBulkAssignForm' : function(events, template){ console.log('Reset', $('.bulkAssignForm')[0]); $('.bulkAssignForm')[0

Solution 1:

After changing value of Select2's underlying <select> or <input> you have to trigger change event so this change will be handled by Select2 code and rendered appropriately:

$(".bulkAssignForm").find("select").val("").trigger("change");

Successfully tested on AutoForm Demo test page.


Post a Comment for "Form Inside Boostrap Modal Does Not Reset"