[jQuery] Obtaining the value of an element
Hello
Using PHP to output some mySQL table data:
code:
echo '<span id="approveid">'.$row[id].'</span>. '.$row
[topicTitle].' <span id="approveTitle"><img src="../img/icons/
icon_checkex_sm.gif" alt="unapproved"></span>
';
...
...
there are 40+ rows, all with a unique $row[id]
/code
So if the user clicks the span id approveTitle I initiate an ajax
request
I want to update the row in the mySQL table that the id of the row
being clicked on is used as the id key for my table row that is being
updated
I have the JS code pasted here:
http://pastebin.com/m429218a7
A little help please?