how to change contents of gridview cell using jquery

Posted by Klbaiju under jQuery on 7/24/2013 | Points: 10 | Views : 1222 | Status : [Member] | Replies : 1
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
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')append(<a href="#">booked</a>);


how to solve this


Posted by: Jitendrasoft09 on: 7/24/2013 [Member] [MVP] Starter | Points: 25

Hi Baiju,

Nice code, means append to be used to modify the functionalities of control with the help of jquery.

Thanks for your valuable information.

Jitendra Kumar
If my post helps you, plz mark as an answer.

Klbaiju, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response