How to save and close a bootstrap modal?

后端 未结 6 1635
醉酒成梦
醉酒成梦 2021-02-13 06:17

This question have many answers out there but none of those answers solved my problem. I have a modal with some

JS

$('#save').click(function() {
  $select_value = $("#exampleSelect").value();
  $('#someModalId').modal('hide');
});
  1. Give your select a name or id
  2. Set the value of select to a global variable. Make sure to declare the variable at the top if you are getting an error.

提交回复
热议问题