Welcome Guest, Not a member yet? Register   Sign In
Clickable table rows using Jquery
#6

[eluser]xwero[/eluser]
Making a whole row clickable can lead to confusion, it's better you provide a visible link.

But if you want to make a row clickable you should at least have the url. then you can do something like this
Code:
$('td').contains('http://').each(function(){
  var self = $(this);
  self.parent().bind('click',function(){
    [removed].href = self.text();
  });
});
It is untested but it should work. A jquery guru would write this in one line i guess Smile


Messages In This Thread
Clickable table rows using Jquery - by El Forum - 09-02-2007, 05:18 PM
Clickable table rows using Jquery - by El Forum - 09-03-2007, 09:30 AM
Clickable table rows using Jquery - by El Forum - 09-03-2007, 09:43 AM
Clickable table rows using Jquery - by El Forum - 09-03-2007, 09:57 AM
Clickable table rows using Jquery - by El Forum - 09-03-2007, 01:01 PM
Clickable table rows using Jquery - by El Forum - 09-03-2007, 01:33 PM
Clickable table rows using Jquery - by El Forum - 09-03-2007, 01:41 PM
Clickable table rows using Jquery - by El Forum - 09-03-2007, 04:20 PM
Clickable table rows using Jquery - by El Forum - 09-03-2007, 04:57 PM
Clickable table rows using Jquery - by El Forum - 09-03-2007, 11:48 PM
Clickable table rows using Jquery - by El Forum - 09-04-2007, 12:42 AM
Clickable table rows using Jquery - by El Forum - 09-04-2007, 01:09 AM
Clickable table rows using Jquery - by El Forum - 09-04-2007, 01:16 AM
Clickable table rows using Jquery - by El Forum - 09-11-2007, 06:16 AM
Clickable table rows using Jquery - by El Forum - 09-11-2007, 08:15 AM
Clickable table rows using Jquery - by El Forum - 09-11-2007, 01:02 PM
Clickable table rows using Jquery - by El Forum - 09-11-2007, 01:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB