remove 1st p tag containing br??
I found this on Stack Overflow, I can almost use this for what I need.
$("p").remove(":contains('Hello')");
I need to find the first p tag on the page that contains a <br> or <br /> and remove the entire <p><br></p>
I know there is a first() method but how is it used in conjunction with remove??
Can I do this?? Or how should I do this differently??
Do carriage returns within <p> tag matter?? -- that is, if the <p> and <br> and </p> are on separate lines in the source code??
$("p").first().remove(":contains('<br>')");
Thank you, Tom