Not sure how to phrase this question exactly, but I'll give it a shot. (If you have a suggestion for how to phrase it better so others can find it, tell me and I'll edit it).
I want to know the best practices for handling clicks on a page that are then processed using AJAX. I have been temporarily using code that looks like this in the HTML:
<a href="#clickable">Click me!</a>
And in jQuery I handle the clicks by binding click
to the href
.
Of course, I know that you should not be making this known to the user.
So how should I be handling these clicks?