Hi .. i'm a newbie on javascript world and newbie of jquery but it looks like funny an speedy.. i've a problem and i'm looking around to fix it i'm coding a questionnaire in php , and it works as well, but i would give the possibility to edit an already answered quest using jeditable.js plugin, this is my <p> generated with smarty:
{foreach...} <p class="editable_select">The answer is <strong>"{$item[6]}"</strong> </p> {/foreach...} this is the js: $(function() { $(".editable_select").editable("index-object.php", { indicator : '<img src="images/indicator.gif">', data : "{'1':'SI','2':'NO'}", type : "select", submit : "OK", style : "inherit", name : 'newvalue' submitdata : function() { return {id : 2}; } }); }) i've put the classname as you see " editable_select" and now on document ready ( ;) ) for each line or answer printed by smarty i can click on it and choose my combo selection,that are just yes or no fixed values.. next step i need is pass to js code the answer itemID {$tem[6]}, generated dynamically with smarty to POST answerid={$item[6]}&newvalue=value in index-object.php and update the db line referred to it. final answer is How can i take a value from this html page and pass it to jeditable to create a dynamic post referred to {$item[6]} generated by smarty? regards.