I have a simple modal that is used to insert the details of files to a MySQL table; like file_no, file_name, date_opened, relevant_subject, status etc.....
The modal is working fine and inserted data to the table correctly. There are large no of files to be entered to the system at the moment. Therefore, I want to keep the modal open always till click the window close button by the user. What can be the JavaScript code apply for the modal ? Can anyone help me ? I tried the following code already. But didn't get the expected ...??
<script type="text/javascript">
jQuery(window).load(function(){
jQuery('#modal').modal('show').on('hide.bs.modal', function(e){
e.preventDefault();
});
});
</script>