If the hash link is http://adress.com/#page10 , is it possible to track this jQuery and change the defined z-index div?

    1 answer 1

     if(location.hash == '#page10') { $('#some_div').css('z-index',50); } 
    • thank! but it works when the page is updated, but I have a dynamic ((( - Isolde Stoltzm
    • In this case, it is necessary to track not the change of hash, but the transition event by reference to hash. It seems obvious ... - Indifferent
    • Respected! This is obvious only to you, as a specialist! =) and this is not so obvious to me, and can I have more details? - Isolde Stoltzma
    • 3
      Where is more? There's a bunch of options. For example, `<a href="#page10" id="page10"> page10 </a> $ (" # page10 "). Click (function () {$ ('# some_div'). Css ('z-index ',50); }); ` - Indifferent