私は次のli-sを持っています:
your ad was Approved
your name was Approved
your ad was Deleted
両方の条件で見つけたい:
私は次のことを試しました:
$("#notification-list").find(
"li:contains('was Approved'), li:not(:contains('your ad'))).each(function () {
}
しかし、私は得ました:
your ad was Approved (I got it cause 'your ad' is found here and 'was Approved')
your name was Approved (I got it cause 'was Approved' is found)
your ad was Deleted (I got it cause 'your ad' is found)
両方を含むアイテムのみを取得したい:
your ad was Approved (I got it cause 'your ad' is found here and 'was Approved')
私は試した:
$("#notification-list").find(
"li:contains('was Approved') and li:not(:contains('your ad'))).each(function () {
}
しかし、うまくいきません。
どんな助けでも大歓迎です!