Just to clarify, your row can't have an href  as that's not a valid
attribute, but you can put a click handler on the row and have it
access the contained anchor to get the href. This might get you
started:

$('tr.row').click(function(){
  var href = $(this).find('a').attr('href');
})

Be aware that depending upon how your markup is structured, a user
could click the anchor itself and that would be followed, so you might
want to return false if that's not desirable behavior.

On Apr 19, 12:35 pm, kevind <kevint...@gmail.com> wrote:
> I want to make rows in a table clickable.  the row already contains a
> link in a TD cell which works - however, i've added a hover effect to
> the table and want to copy the href from the link and add it to the
> row itself
>
> all rows in the table have class  .Row  to make selection through
> JQuery easier.
>
> I can add href fairly easily to the rows, but i don't understand how
> to scan the row for a link (there is only one) and copy it to the
> row's href.
>
> HELP

Reply via email to