Can't change z-index with JQuery
问题 I, for some reason, can't change the zIndex of an element using jQuery. I've searched all of this website and Google but couldn't find the right answer. I am trying to put my element in front of another div when clicking a button. I used the code you can see under here. But didn't work. $(this).parent().css('zIndex',3000); CSS code of elements it's under in the begin: #wall{ width:100%; height:700px; position: absolute; top:500px; background: #11c1e7; opacity: 0.6; z-index: 900; } CSS code of