how to make a whole row in a table clickable as a link?

前端 未结 26 1941
粉色の甜心
粉色の甜心 2020-11-22 14:05

I\'m using Bootstrap and the following doesn\'t work:


    
        
            Blah Blah
           


        
26条回答
  •  孤城傲影
    2020-11-22 14:36

    You could give the row an id, e.g.

    ...

    and then use jquery to say something like:

    $('#special').onclick(function(){ window="http://urltolinkto.com/x/y/z";})

提交回复
热议问题