// This module prepare by : Jaypee Tanio // June 16, 2013 function GetDate() { $('#save').click(function(){ var Time = []; var Data = []; var Source = []; var Measure = []; var Table = []; $('#TableHolder table').each(function(){ // call all the id of the table inside div#TableHolder id=$(this).attr('id'); //Getting all id's Time.push('#'+id+' input#Time'); // Storing id's of each element Data.push('#'+id+' input#txtData'); Source.push('#'+id+' select#source :selected'); Measure.push('#'+id+' select#measurement :selected'); Table.push(id); }); GetSaveData(Time,Data,Source,Measure,Table); // Function call of saving the data }); }; function GetSaveData(Time,Data,Source,Measure,Table){ var checks=0; TimeSave = []; DataSave = []; SourceSave = []; MeasureSave = []; for(i=0;i