jquery - Get the value of textbox and set to table cell -


i created @ table row @ runtime , 1 of table column contain textbox . value of textbox , set value of textbox particular table column. column gute contains textbox. can value of each textbox when try add particular textbox table column it`s adding other columns.

$('#detaildata').on('change', '#gult', function() { $(this).hide(); pos=$(this).val(); $('#detailtablerows #gulttextbox').append(pos);  }); 

you're appending elements same id, must unique. suggest change them classes, , can following:-

$('#detaildata').on('change', '.gult', function() {     $(this).hide().parent().text(this.value);    }); 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -