How to do an onclick ajax call to a php file, with jquery?

Posted by Yegor on Stack Overflow See other posts from Stack Overflow or by Yegor
Published on 2010-03-22T23:50:26Z Indexed on 2010/03/22 23:51 UTC
Read the original article Hit count: 349

Filed under:
|
|
|

I have a link, which links to domain.com , when a person clicks, I want it to do an ajax call to counter.php and post 2 variables to it, so it can add 1 to the views for that link.

I have a link:

Link Title

How would I do this with jquery?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about php