I use link-button in grid-view for display popup appear by using this
$(function () {
$('[ID*=lbViewChart]').on('click', function () {
var row = $(this).closest('tr');
var Id = row.find('td')[0].firstChild.data;
var obj = {};
obj.ID = Id;
GetData(obj);
returnfalse;
});
Now i want when user click on row then pop up appear for this i modify this code to this
$(function () {
$('#tabledata tr').click(function () {
var row = $(this);
var Id = row.find('td')[0].firstChild.data;
var obj = {};
obj.ID = Id;
GetData(obj);
returnfalse;
});
Member
239 Points
1074 Posts
Click on row jquery
Jul 20, 2016 07:07 AM|Capricon User|LINK
I use link-button in grid-view for display popup appear by using this
Now i want when user click on row then pop up appear for this i modify this code to this
when i click on row nothing happens any solution?
Member
270 Points
79 Posts
Re: Click on row jquery
Jul 20, 2016 07:43 AM|bugwee|LINK
make sure to check if you have <tbody> in your table. if there is, then it should be like this
if it does not help, then try to run F12 Developer tools to see any error when clicking the row.
Member
270 Points
79 Posts
Re: Click on row jquery
Jul 20, 2016 07:52 AM|bugwee|LINK
Looks like you are typing incorrect table name. In your other post http://forums.asp.net/p/2099605/6066623.aspx?th+css+in+jquery+ the table name is "tabledata" so it should be
Member
239 Points
1074 Posts
Re: Click on row jquery
Jul 20, 2016 08:32 AM|Capricon User|LINK
mistakely type here but in my project i type correct name
Member
239 Points
1074 Posts
Re: Click on row jquery
Jul 20, 2016 09:40 AM|Capricon User|LINK
thank