So. I have below Jquery/Ajax and .hide() method doesn't seems to hide the element loadingdiv
.
<script type="text/javascript">
$(document).ready(function ($) {
//show a progress modal of your choosing
$('#loadingdiv').show();
$.ajax({
url: "@Url.Action("ToDo","Test")",
dataType: 'html',
success: function(data) {
$('#bookListDiv').html(data);
}});
});
$('#loadingdiv').hide();
</script>