Can't change z-index with JQuery

后端 未结 5 1424
别跟我提以往
别跟我提以往 2020-12-10 10:29

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

5条回答
  •  隐瞒了意图╮
    2020-12-10 11:08

    because your jQuery code is wrong. Correctly would be:

    var theParent = $(this).parent().get(0); 
    $(theParent).css('z-index', 3000);
    

提交回复
热议问题