Handling clicks for jQuery AJAX (with PHP)

keyser

New Member
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:\[code\]<a href="http://stackoverflow.com/questions/3790640/#clickable">Click me!</a>\[/code\]And in jQuery I handle the clicks by binding \[code\]click\[/code\] to the \[code\]href\[/code\].Of course, I know that you should not be making this known to the user.So how should I be handling these clicks?
 
Back
Top