javascript - Hiding DIV if it contains specific text -
I asked a similar question yesterday ()
Since then I have to customize the code suggested by dystroy Have tried to hide a DIV on the second page
This page is HTML:
This is the script I used to: < Pre> $ (document) .ready (function () {$ (".ct_pl_product_price"). Filter (function () {return $ (this) .clone (). ('. Ct_pl_product_link') Remove. () .end () .text () trim () == "0.00"}). Wrap ()}); I think it makes sense (if I have translated the Dastroise code correctly) but it does not appear to work.
Any thoughts?
In this case you can use the : in the selector: < / P> $ ('.ct_pl_product_price: contains ("£ 0.00"). Hide ()
Comments
Post a Comment