I have this code that is supposed to trigger an ajax call for every count of likes from a php like system I made. I guess it doesn't call because of the html tags but I need something like that.
In the following code I know the user ,id and since I am calling it from a fetch_array from php and mysql
<span id="sh1_'.$statusid.'"
onload="checkRate(\''.$user.'\',\'status\',\'2\',\''.$id.'\')" > 0</span>
However there are many status when the php loads, and when it finishes loading the page it doesn't trigger the onload functions. Is there a way to retrieve the id on each div that i download within the same loop?
checkRatefunction. Is there any errors in console?