[jQuery] Jeditable question
IT is not clear to me through looking at the documentation what code
to use. I want to pass a variable to the php script that is used to
update a cell in a database. How can I pass an ID value?
Here is my jquery code:
jQuery("document").ready(function() {
$("#ratesTable td p").editable("cell.php",{
indicator: 'loading...',
id: '9',
});
});
The processing page gets loaded then, which only contains the
following PHP code:
print_r($_POST)
which displays all of the POST variables passed, but this is all it
shows:
Array
(
[newvalue] => Alaska
[elementid] =>
)
What am I doing wrong? What is common way for the script to know what
field/row to update in the database? THANK YOU