jQuery-UI's autocomplete not display well, z-index issue

前端 未结 12 1349
情深已故
情深已故 2021-01-31 12:54

I\'m currently implementing jQuery UI\'s autocomplete in my clients webshop. The problem is: the element the autocomplete resides in, has a higher z-index then the z-index of th

12条回答
  •  猫巷女王i
    2021-01-31 13:34

    While searching I found this topic (http://forum.jquery.com/topic/alternating-style-on-autocomplete). Apparently the only way to change the style of the autocomplete box is by doing it through javascript:

        open: function(){
            $(this).autocomplete('widget').css('z-index', 100);
            return false;
        },
    

提交回复
热议问题