1 Reply Latest reply on Dec 5, 2017 7:47 PM by Jian-cdo

    how to hide the page item with the label together in Javascript

    Jian-cdo

      Hello,

       

      I need to hide/show a page item based on another checkbox, while the label always displays when I tried the following in Javasript:

       

           document.getElementById('P8_COMMENTS').style.visibility = 'hidden';

           $('#P8_COMMENTS').hide().parent().hide();

          $('#P8_COMMENTS').parent().hide();

       

      Any other idea?  Thanks.