Hide DOM object in jquery but determined by other object
Hide DOM object in jquery but determined by other object how best to use jQuery to cause this link with class: "morelink_L3" to be hidden if the div that contains this text: "We understand things..." is less than 550 characters ? The fact that this div has no class or id makes it tricky for me - there is option of using "find() but that didnt work when i used it. this is what i tried: if($(".story_L3 > div").text().trim().length < 550) { $('.morelink_L3').hide(); } this is the html with problem: Section Description We understand things change in life and at work and we want to make sure you’re ready for anything. We have a host of information available to help you understand what you need to do and how we can support you through any change. </div> <span class="morelink_L3">Read More</span> </div> </div> 2 Answers ...
