I use jQuery, I need to make some anchor tags perform no action.
I usually write it like this:
<a href="#">link</a>
However this refers to the top of the page!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you don’t want to have it point to anything, you probably shouldn’t be using the
<a>(anchor) tag.If you want something to look like a link but not act like a link, it’s best to use the appropriate element (such as
<span>) and then style it using CSS:Also, given that you tagged this question “jQuery”, I am assuming that you want to attach a click event hander. If so, just do the same thing as above and then use something like the following JavaScript: