Posts

Showing posts from 2015

How to extend a JSON array in Jquery

Suppose you get a JSON  Object like this

var optionsoptions;
 $.getJSON("relaytemplateattributes.json" , function(result){
optionsoptions=result.optionsoptions;
 });

/*JSON LIST FORMAT*/
{"optionsoptions":[{"OPTIONID":-1,"COMBOITEM":"---SELECT--"},{"OPTIONID":1,"COMBOITEM":"-3U0Comp"},
{"OPTIONID":1,"COMBOITEM":""},{"OPTIONID":1,"COMBOITEM":"-U2comp"},
{"OPTIONID":1,"COMBOITEM":"Ipol"},{"OPTIONID":1,"COMBOITEM":"-U2"},
{"OPTIONID":1,"COMBOITEM":"-3U0"},{"OPTIONID":1,"COMBOITEM":"Dual"},
{"OPTIONID":2,"COMBOITEM":"0 deg"},{"OPTIONID":2,"COMBOITEM":"180 deg"}
{"OPTIONID":3,"COMBOITEM":"1 out of 3"},{"OPTIONID":3,"COMBOITEM"…

Jquery Table Inline Edititing

https://jsfiddle.net/anjana6/yc1o97kL/5/embedded/result/

The Above link demonstrates inline editing of jquery.
The  idea used to implement  is as follows:

Table consists of two identical rows  first one is Parent row which is non editable
Second one is Editable child row.
By Default the Parent row is visible and on click on edit the parent row is hidden and child row is displayed.
Save data displays all the modified row records and it stores it in a hidden string.