javascript - How to display temp array data to client -


my form submit data , result on same page user viewing. result not save where. image form here

as above image select 2 parameter save on db , 1 length temp .

on select length after submit.
on submit below table show result in table type ,volatage .,resultr,resultx,resultb user.

length,resultr=lengthr,resultx=lengthx,resultb=length*b 3 temp array. user can many time result , shown row row , on clear click result erase.

i think 1 way keep div acts container results in second table. can save result got submit , append data second tables div.something this:

$("#second-table-div table").append('<tr><td>resultr : '+somevalue+'</td><td>...</td></tr>'); 

once user clicks 'clear' button, can write small jquery or javascript, this:

$('#clear').on('click',function(){   $("#second-table-div").html(''); }); 

Comments