html - How to select all empty p tag using jQuery? - Get link Facebook X Pinterest Email Other Apps - March 15, 2012 how can select empty tag using jquery. i want select <p></p> <p style="display: block"></p> <p> </p> <p> </p> <p> </p> and not <p>0</p> <p>test</p> try var t = $('p').filter(function(){ return $.trim($(this).text()).length == 0 }); demo: fiddle Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment