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

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -