Skip to content
Advertisement

How can i get the value of multiple anchors in javascript which are generated from php and send the value to another Php page using AJAX

Here is how my anchors are displayed on the web. I need to get the value of the anchor and send it to another PHP file, so i would use the value of the anchor in my SQL query to give the condition to display all the productId associated with the value of the anchor

JavaScript

And here is my JavaScript

JavaScript

Advertisement

Answer

JavaScript

See modifications and explanations in the code

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