Community

Ask Ben: Excluding Script Tag Content From The jQuery .text() Method

(Ben Nadel) Hi Ben, I have come across an issue with jQuery when using “text().length” and I am hoping that you may be able to help. I have applied a CSS class called hideEmpty to a div. I am then using jQuery text().length to provide the total length of that element, including child nodes, and hidi

Read More - Register for Free Membership