I am facing issue regarding javascript. Onclick of button a call a function
function onButtonClickFunction()
{
ajaxCall();
}
function ajaxCall()
{
$('.black_overlay').show();
/* Some Ajax Code */
$('.black_overlay').hide();
}
So here I am facing the issue is, When I call the ajaxCall function, ideally overlay should be appear, But this will appear and hide at the end of the Ajax response.
There is no error in the console. And when check with the breakpoints then this function sequentially works.
I really didn’t come to know, where should be the problem. What should I check for this?
Any help would be appreciated.
Thanks!