Skip to content
Advertisement

How can I make a browser record the click like Facebook does?

This is my current project. I need to record the current state of an <a> and I get it with PHP, I must be missing something. I have tried to follow the .on() example, but the problem is that when I use it, it is not capturing the click event.

Can someone help please?

JavaScript
JavaScript

Advertisement

Answer

You can get the attribute by jQuery

JavaScript

JS :

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement