how can I remove an element using jquery by the text in the element.
<a href="/">Link1</a>
I dont want to remove the element by class or ID. I want to do something like this:
$('a').html('Link1').remove()
Can you help me with this?
how can I remove an element using jquery by the text in the element.
<a href="/">Link1</a>
I dont want to remove the element by class or ID. I want to do something like this:
$('a').html('Link1').remove()
Can you help me with this?