Member Avatar for ping0ping

Hi, my jQuery link is not working. Its only work if I'm not using href attribute on that link. Currently its only functioning when I put the URL into altor title attribute for example. When I put the url on href attribute it will not run as AJAX. Sorry if my explanation hard to understand. Kindly asked and I'll try my best to explain.

Thank you. :)

Hi,
Without a code, I can say that to add return false; in the functiot with Ajax.
The "return false;" makes to not open the link in browser.

Member Avatar for ping0ping

return false; or preventDefault() better? Are both doing the exact same thing?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.