Hello,
I was trying to apply a z-index to put an overlay over a website i'm building using jQuery's .css() function, but when I tried the following it didn't work.
By which i mean, the overlay as behind the site and according to chrome dev tools the overlay didn't have a z-index styling, which means the jQuery didn't work.
Here is the code:
$(document).ready(function(){
$("#overlay").css("z-index","10000");
});
What did I do wrong?
Can someone please help me understand what I did wrong and how I can get the styling to be applied via jQuery?
Thanks in Advance & Best Regards!