2 Replies Latest reply on Jul 3, 2015 3:33 AM by Allison@HavasLynx

    How to target a div in <body> from Edge

    Allison@HavasLynx Level 1

      Hiya,

      I'm trying to hide a div in the HTML file from within Edge.

      I'm using NiceScroll on 2 textboxes within Edge and they are hidden and shown at different times within the composition.

      When I hide the text boxes however, the scrollbars remain!

       

      Nicescroll dynamically places a div within the body of the HTML file like this:

      <div id="ascrail2000" class="nicescroll-rails" style="width: 4px; z-index: auto; cursor: default; position: absolute; top: 116px; left: 244px; height: 250px; background: rgb(94, 109, 116);"><div style="position: relative; top: 0px; float: right; width: 4px; height: 181px; border: none; border-radius: 0px; background-color: rgb(213, 223, 228); background-clip: padding-box;"></div></div>

       

      I have spent some time trying to target it and use hide() but nothing seems to work. The div is outside of the composition so getComposition() isn't going to work!

      Can anyone help with this please?

       

      Many thanks

      Allison