Skip to content Skip to sidebar Skip to footer

Bootstrap Modal Not Closing On Form Submit - Rails

I have this modal in my view:

Solution 1:

I've had a similar problem before, and the way I solved this was by adding a click event to the submit button:

$('#addSubmit').click ->
   $('#addListItem').modal('hide');

Hope this helps!

Solution 2:

Post a Comment for "Bootstrap Modal Not Closing On Form Submit - Rails"