how to add anchor tag inside gridview using jquery

Posted by Klbaiju under jQuery on 7/8/2013 | Points: 10 | Views : 1197 | Status : [Member] | Replies : 1
Hi,
in my application i want to add an anchor tag inside a gridview like this

$("#GridView1 td").filter(":not(td:first-child)").each(function () {

var cellText = $(this).text();
if ($.trim(cellText) == '') {
$(this).css('background-color', 'LightGreen');
$(this).css('<a href='booking.aspx' >available</a>');

}
});
but this is not working.what is the error

Regards

Baiju




Responses

Posted by: Vuyiswamb on: 7/8/2013 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
Good Question what is the Error , i dont see a gridview code as well

Thank you for posting at Dotnetfunda
[Administrator]

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

Login to post response