Skip to content
Advertisement

how to send the value of an anchor with jquery ajax to php

I am trying to send to values of a couple of anchors with jquery to php file but i got no callback from the php script.

JavaScript

the jquery:

JavaScript

And the php (process.php):

JavaScript

what am i doing wrong?

What i want to achieve: click on Star 5, give me value “5” back. Click on Star 4, give me value “4” back and so on…

Advertisement

Answer

value is not an accepted attribute for <a> tags, you can view available attributes at https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a

I would recommend:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement