Posts

Showing posts with the label hide

Find html element by content and hide using jQuery

Find html element by content and hide using jQuery I am trying to use jquery to find some elements in some HTML, I would like to find and hide the list id that contains the label text 'This is my test label' and 'Yest another test label <ul id="mylist" class="top_level_list"> <li id="field66" class="myfield"> <div class="field_icons"> <div class="title">This is my title</div> </div> <label class="my_label" for="input71">This is my test label</label> </li> <li id="field20" class="myfield"> <div class="field_icons"> <div class="title">This another test title</div> </div> <label class="my_label" for="input71">Yet another test label</label> </li> I have found the jQuery .hide function as well as the ....