for example the twitter follow button when pressed it sends an ajax call through php script and then displays unfollow:
how could that be acheived using jquery and css?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Something like this:
This will make the ajax call to an php action, and change the buttons text to something else when the ayax call is succesfull.
In the php action you do the ‘logic you need’.
for more info over tha ajaxcall see:
http://api.jquery.com/jQuery.ajax/