Ajax doesn't work on multiple divs debug - repost
This project received 15 bids from talented freelancers with an average bid price of $31 USD.Get free quotes for a project like this
Project Budget$10 - $30 USD
I am hiring a programmer to help me to debug [url removed, login to view], i want to put a "add to wish list button" to a series of div, class = "imgforplaces_thumbnail" (see my php function), the while loop in php function will then generate a number of div "imgforplaces_thumbnail", i.e. 12. I have tried to var_dump($row['id']); for each different item in the while loop, they have shown i.e. 1,2,3,4,5,6 [url removed, login to view] the add to wish list button, class ="addbutton","deletebutton", when i click on it, will do an ajax call, either Addtobucketlist() or Deletefrombucketlist() (see header). depending on the status of checkifadded(), it will show or hide class "addbutton" or "deletebutton". Now my problem is that when i execute the codes, when i click on the first check button, it simply runs the last check button function!i.e. $row['id']=6.
One thing worth to note is that if i am not using multiple divs, it works like magic! but not when there are more than one div "imgforplaces_thumbnail"
Looking to make some money?
- Set your budget and the timeframe
- Outline your proposal
- Get paid for your work
Hire Freelancers who also bid on this project
Looking for work?
Work on projects like this and make money from home!Sign Up Now
- The New York Times
- Wall Street Journal
- Times Online