无法使用<a> tag to row

时间:2019-04-14 16:09:30

标签: jquery laravel-5

i have a user table and make each of its row link using jquery .I want to redirect user to his profile when the user clicks on a specific row by using user id as a key.how can I get the user_id from the table row while clicking on the row

the user will be redirected to the profile of the user he selects

1 个答案:

答案 0 :(得分:0)

这只能在使用laravel时完成。

<a href="{{ route('route-name',$user->userid) }}">{{ $user->username }}</a>