(not my script) Pretty sure I found the answer to this question here, but I can not find it. Anyway, this worked great for me ...
$(function() { var zIndexNumber = 1000; $('ul').each(function() { $(this).css('zIndex', zIndexNumber); zIndexNumber -= 10; }); });
just make sure your css includes position and z-index so that the script can access the values.
Kudos to the one who came up with this saved me a lot of trouble.
davidg
source share