jquery - how to remove p tag (not empty) found after table -


from live url dragging data work. working fine want data of p tag before table , not after it. mean data have following structure.

<p>some data</p> <p>some data</p> <table> data </table> <p>some data</p> <p>some data</p> <p>some data</p> 

now want retain first 2 p tags along table , no p tags or data after table. how can using jquery. tried doing finding p tag after table , using remove no avail. help/suggestions welcome. in advance.

try following

$("table").nextall("p").remove(); 

Comments

Popular posts from this blog

javascript - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -