how to change contents of gridview cell using jquery

Posted by Klbaiju under jQuery on 7/24/2013 | Points: 10 | Views : 1246 | Status : [Member] | Replies : 0
Hi all,
In my application datas are displaying in gridview .each cell contains an anchor tag with corresponding id's.
if i click a cell it's id will display in a text box. if i press a button and satisfy the condition ,i want to change the contents of cell in gridview

i tried this code
$.ajax({
type: "POST",
// url: "Busbooking.aspx/ConductorTable",
url: "WebService1.asmx/insert1",
data: "{'tourdate':'" + tourdate + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {
// alert(msg);
// alert(msg.d);
if (msg.d == "Success") {
//id of cell
$('#id').empty();
$('#id')append(<a href="#">booked</a>);

}

}
});
how to solve this
Regards
Baiju




Responses

(No response found.)

Login to post response