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

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

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

ios - I get the error Property '...' not found on object of type '...' -