if modal is close then again open dont show the last selected value in jquerry code example
Example: bootstrap modal popup clear data
$('#yourModalName').on('hidden.bs.modal', function(event) {
$('#yourModalName').empty();
});
$('#yourModalName').on('hidden.bs.modal', function(event) {
$('#yourModalName').empty();
});