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

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

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


    
        
            Blah Blah
           


        
26条回答
  •  面向向阳花
    2020-11-22 14:21

    A very easy option is just use on-click, and more correct, in my point of view, because this separate the view and controller, and you don't need to hard code the URL or whatever more you need do accomplish with the click. It works with Angular ng-click too.

    Click to show rowIndex

    Exemple working here

提交回复
热议问题