On Link Click Do Something and Change Text (Html, PHP, JS)
Posted
by Belgin Fish
on Stack Overflow
See other posts from Stack Overflow
or by Belgin Fish
Published on 2010-05-10T23:45:39Z
Indexed on
2010/05/11
0:34 UTC
Read the original article
Hit count: 181
onclick
Hi, right now I'm just trying to figure out how I could do the following :
I have this text right, and it says "report"
I'd like it, so when someone clicks on the report link, it simply executes some PHP code and then changes the text from "report" to "reported" and the font from red to green.
Thanks!
© Stack Overflow or respective owner