I'm having trouble getting my loading screen to display when my button is clicked. The Ajax function works fine, but the loading screen is not showing up.
CSS
<style>
#display_loading{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, 50%);
}
</style>
jQuery
$("#submit-btn").click(function(){
//$('#loading').show();
$("#display_loading").html('<img src="C:\Users\jmdsantos\Loading_icon.gif" height="100px" width="100px">')
Below is how I close the loading GIF using Ajax.
$("#display_loading").html('')
Can anyone help me figure out what I'm doing wrong?