How to remove "href" with Jquery?

Viewed 176240
<a id="a$id" onclick="check($id,1)" href="javascript:void(0)"  class="black">Qualify</a>

After "href" is removed, is "Qualify" still clickable?

5 Answers

Use:

$('a').filter('[href^="http://"],[href^="https://"]').contents().unwrap();

or

$('a').filter('[href^="http://"],[href^="https://"]').removeAttr("href").css("cursor","not-allowed");
Related