i have a div with style="display:none;"
And a button click event
$('#apply_filters').on('click', function () {
console.log("test1");
$("#mydiv").show();
console.log("test2");
//Do some work that take a minut
});
mydiv is a div with a message so the user know that the button click works and the server is processing the data,
now the thing is that the test1 and test2 messages shows instantly, but the div shows after the processing is done,
i also try with the javascript code version
document.getElementById("mydiv").style.display = "block";
and doesn't work either