views:

1502

answers:

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

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

+3  A: 

Your title question and your example are completely different. I'll start by answering the title question:

$("a").removeAttr("href");

And as far as not requiring an href, the generally accepted way of doing this is:

<a href"#" onclick="doWork(); return false;">link</a>

The return false is necessary so that the href doesn't actually go anywhere.

Langdon
+1  A: 

If you remove the href attribute the anchor will be not focusable and it will look like simple text, but it will still be clickable.

CMS
It is ok as long as it looks like plain text, not like a hyperlink or button.
Steven