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
Post a Comment