How to make an anchor tag refer to nothing?

后端 未结 18 1730
一向
一向 2020-12-12 10:28

I use jQuery, I need to make some anchor tags perform no action.

I usually write it like this:

link

H

18条回答
  •  醉话见心
    2020-12-12 10:57

    sth.
    

    this was my anchor tag. so return false on onClick="" event is not usefull here. I just removed href="#" property and it worked for me just like below

    sth.
    

    and i needed to add this css.

    .SomeClass
    {
        cursor: pointer;
    }
    

提交回复
热议问题