[jQuery] Jeditable + Json + Multiple Select
Hi everybody,
excuse my bad english...
I'm using jEditable plugin, it works fine, but I have a little
question...
I have to use it with a dynamic set of select input type.
This is my PHP code with the Json string:
{
message: "
<dl>
<dt>1</dt>
<dd>
<div class=\"optionsList\"><h4>First</h4>
<span class=\"clickOnThisSelect\" id=\"select_1\">Value One</span></
div>
<div class=\"optionsList\"><h4>Second</h4>
<span class=\"clickOnThisSelect\" id=\"select_2\">Value Two</span></
div>
<div class=\"optionsList\"><h4>Third</h4>
<span class=\"clickOnThisSelect\" id=\"select_18\">Value Three</span></
div>
</dd><dt>
</dl>",
"selectmessage": {
select_1: [ "{'1':'Laminato', '2':'Cotto', '3':'Parquet', '4':'Marmo',
'5':'Granito', '6':'Cemento', '7':'Terracotta' }" ] ,
select_2: [ "{'8':'Stile Moderno', '9':'Stile Rustico', '10':'Stile
Barocco', '11':'Stile Country', '12':'Stile Classico' }" ] ,
select_18: [ "{'13':'Angela', '14':'Donato' }" ] }
}
and this is the Js code in which I'm trying to use the plugin:
$(".clickOnThisSelect").editable
("<?=site_url('admin/entries/update_options/'.$this->idEntryCod)?>",
{
indicator : "<img src='<?=site_url('assets/images/icons/loader.gif')?