When a user clicks, I need two functions to run. This works in Firefox and Chrome, but not in IE8.
The first function should display a modal (indicating that the form is being saved, although it's not showing up) while the second function saves the form and hides the modal.
HTML
<a onclick="openModal();saveForm();">Click Me</a>
<!-- Modal -->
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div id="modal">
<img id="loader" src="static/images/ajax-loader.gif" />
</div>
</div>
JavaScript
function openModal(){
$('#myModal').modal('show');
}
function saveForm(){
//--- some logic
}
I appreciate your help!