hi , based on the answer to my previous question by BlausC i am now able to use jquery to a certain extent. but now i need to add a checkbox control to the table created by jquery based on a postback from servlet. the code i am using is
$("#linkInstr").click(function(){
var arr=new Array();
var cdid=$("#cboinstr option:selected");
var code=$("#cbovendcode option:selected");
$.get("trnDC?caseNo=21&insid="+cdid.text(),function(data){
arr=data.split(",");
var tbl= $("#tblDetails");
$('<tr>').appendTo(tbl).append($('<td>'))
.append($('<td>').text(code.val()))
.append($('<td>').text(cdid.text()))
.append($('<td>').text(arr[0]))
.append($('<td>').text(arr[1]))
.append($('<td>').text(arr[2]))
;
})
})
any help will be greatly appreciated