0

I have following textbox

input name="txt_Exam" id="txt_Exam" type="Text"
input name="txt_PassingYear" id="txt_PassingYear" type="Text"
input name="txt_school" id="txt_school" type="Text"
input name="txt_university" id="txt_university" type="Text"
input name="txt_board" id="txt_board" type="Text"
input name="txt_percentage" id="txt_percentage" type="Text"
input type="button" onclick="makeList"   

When I click the button, what all are I entre in the above text box, that all values are arranged as a table and it show in one div like this .

SSLC  2008 XXXX -     STATE 80  edit remove
HSC   2010 -    XXXX  STATE 84  edit remove 

and remove or edit this row if i need

RvdK
  • 18,577
  • 3
  • 56
  • 100
Selva Kumar K.P.
  • 1,039
  • 2
  • 10
  • 10

1 Answers1

0

try:

var arr= new Array();
arr.push($('#txt_Exam').text());

when all value are pushed , rebind your result in your Div format.

Shree
  • 18,997
  • 28
  • 86
  • 133
  • arrays should be created using `var arr = [];` -> http://stackoverflow.com/questions/931872/whats-the-difference-between-array-and-while-declaring-a-javascript-ar/1273936#1273936 – Manse Dec 07 '11 at 11:30
  • Here text box name and ids are comes from dynamically,some times text box count also differ. – Selva Kumar K.P. Dec 07 '11 at 11:31
  • But I have count how many text box will appear here, if there is any possible to apply class name for all text boxes and we select values based on class name and then make list – Selva Kumar K.P. Dec 07 '11 at 11:42