i have this issue http://jsfiddle.net/valerioMassacci/LdCqX/

i have a specific div "comments" that onclick show me a set of elements but if the another div contain a specific text: "anonymous", the entire div must be cancelled (not only not displayed)

the problem is that the jquery script find anoymous string and set the display:none; but don't work when i click on comments

有帮助吗?

解决方案

use "contains"

$("div:contains('Anonimo')")

http://api.jquery.com/contains-selector/

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top