Tell me how you can hide part of the code shown in this picture:

alt text

    2 answers 2

    Try to write like this, if I never made a mistake in rewriting classes, then it should work:

    $(document).ready(function() { $('.u-menucont').find('.u-menuvitem').eq(3).hide(); }); 
    • Doesn't Work - Yuri

    You need to add a unique identifier by which you can define this particular div.

    For example, <div class="u-menuvitem" id="myid-2"></div> .

    Then $("#myid-2").hide() - will hide the element, $("#myid-2").remove() will remove it.

    Read about selectors . For example, you can still do the item number in the parent, if it is known in advance.

    • I tried to create an identifier, but it does not want to put it. Show how it can be created in my case? - Yuri