javascript - Hide with jquery a specific HTML pattern where it repeats on a page -


my regex & jquery skills failing me.

i need hide of following html appears on page (the following spat out database):

<p><strong>external links for:</strong></p>   <p></p> 

i'd grateful jsfiddle (or similar) uses jquery hide of above. (note: there data inside second paragraph. if so, should remain untouched).

thanks in advance!

for record, have tried myself jquery skills rubbish best start blank slate expect take few lines of code implement.

if want return instances of both paragraphs in row, can create complex filter so:

$('p').filter(function(i,el) {     var test1 = $(el).html() == "<strong>external links for:</strong>";     var test2 = $(el).next('p').html() == "";     return test1 && test2; }).next().addback().hide(); // or .remove() 

http://jsfiddle.net/mblase75/d7fz4/5/


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -