156
rated 0 times
[
161]
[
5]
/ answers: 1 / hits: 18552
/ 10 Years ago, wed, april 23, 2014, 12:00:00
I am finding all the divs in a document which contains inside a text: 'thetext' and i am changing this text:
$(div:contains('thetext'):not(:has(*))).each(function () {
$(this).text($(this).text() + anotherTextAddedBefore);
})
Is it possible to put inside contains multiple values?
I would like to find the divs whic contains: 'thetext', but also another values, for example: 'thetext1', 'thetext2',etc
I`d want to make it in one procedure and not in more: dont want to use as many procedures as texts i´d like to find.
Thanks!
More From » jquery