1 month ago

How can I make the <a> tag like <button> using CSS?

Posted 1 month ago by imrulhasan273
<a class="add-card cart_item_count"><i class="flaticon-bag"></i><span>ADD TO CART</span></a>

This is my <a> tag. I have some JavaScript work usingcart_item_count class for onclick event. But when I change it to button it works. but When <a> it doesn't clickable.

I want this tag clickable without href because I am using AJAX-Jquery Work without page refresh.

I want when I hovor on the <a> tag it will show finger instead of arrow.

Please sign in or create an account to participate in this conversation.