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
答案 0 :(得分:0)
这只能在使用laravel时完成。
<a href="{{ route('route-name',$user->userid) }}">{{ $user->username }}</a>