I have the following form in a view:
{!! Form::open(['route'=>['user.update',$user_id], 'method' => 'PUT']) !!}
{{ Form::close() }}
How can I assign the value of 'user_id' dynamically with jquery?
This is the HTML that generates the form with blade, where the 'X' is user_id
<form method="POST" action="http://127.0.0.1:8000/public/user/X"
accept-charset="UTF-8" id="form_edit">
<input name="_method" type="hidden" value="PUT"><input name="_token"
type="hidden" value="UlVvrYf77puFKb5XQutbIZBIqDSaA7F8n9s8D31k">