why they are calling port 49678?
can i see your html?
so what should id do?
is this the form that comes up?
You are trying to update the input fields right ?
What do want to do?
laravel project?
let button = $(event.relatedTarget);
let system_name = button.data(“systemName”);
let system_type = button.data(“systemType”);
let system_id = button.data(“systemID”);
alert(system_name)
let modal = $(this);
modal.find(‘.modal-body t#system_name’).val(system_name);
modal.find(‘.modal-body> system_type’).val(system_type);
modal.find(‘.modal-body> #system_id’).val(system_id);
})
what is the problem whit this code
Not getting point
$user = User::with([‘designation’,’department])->get()
Thanks, resolved
let button = $(event.relatedTarget);
let system_name = button.data(“systemName”);
let system_type = button.data(“systemType”);
let system_id = button.data(“systemID”);
alert(system_name)
let modal = $(this);
modal.find(‘.modal-body t#system_name’).val(system_name);
modal.find(‘.modal-body> system_type’).val(system_type);
modal.find(‘.modal-body> #system_id’).val(system_id);
})
what is the problem whit this code
check ur 8th line “t#system”
if you check the alert is befor that so it not related to that
<tr>
<td>{{$s->system_id}}</td>
<td>{{$s->system_name}}</td>
<td>{{$s->type}}</td>
<td colspan=”2″ id=”operations”>
<a href=”javascript:if(confirm(‘Are you want to delete this record?’))ajaxDelete(‘{{route(‘system.delete’,$s->system_id)}}’,'{{csrf_token()}}’)”><i class=” glyphicon glyphicon-trash btn btn-danger btn-sm” ></i></a>
<button data-toggle=”modal” data-target=”#editModal” class=”glyphicon glyphicon-edit btn btn-primary btn-sm”
data-systemName=”{{$s->system_name}}” data-systemType=”{{$s->type}}” data-systemID=”{{$s->system_id}}”>
</button>
</td>
</tr>
@endforeach
{{csrf_field()}}
<div class=”modal-body” style=”margin-bottom: 50px;”>
<div class=”row”>
<div class=”col-md-6″>
<div class=”form-group required” id=”form-system_name-error”>
<label for=”system_name”>نام سیستم</label>
<input type=”text” class=”form-control required” id=”system_name” name=”system_name”>
<span id=”system_name-error” class=”help-block”></span>
</div>
</div>
<div class=”col-md-6″>
<div class=”form-group required” id=”form-system_type-error”>
<label for=”system_type”>نوع سیستم</label>
<input type=”text” class=”form-control required” id=”system_type” name=”system_type”>
<span id=”system_type-error” class=”help-block”></span>
</div>
</div>
<input type=”hidden” id=”system_id” name=”system_id”>
</div>
</div>
<div class=”modal-footer”>
<div class=”form-group col-md-6″ >
<button type=”submit” id=”btn_save” class=”btn btn-primary glyphicon glyphicon-floppy-disk”> ذخیره </button>
</div>
</div>
</form>
console.log(‘button.data(“systemName”)’)
var data = $.parseJSON($(this).attr(‘data-systemName’));
alert(data)
<button data-toggle=”modal” data-target=”#editModal” class=”glyphicon glyphicon-edit btn btn-primary btn-sm” data-systemName=”{{$s->system_name}}” data-systemType=”{{$s->type}}” data-systemID=”{{$s->system_id}}”>
show modal Form
</button>
{{csrf_field()}}
<div class=”modal-body” style=”margin-bottom: 50px;”>
<div class=”row”>
<div class=”col-md-6″>
<div class=”form-group required” id=”form-system_name-error”>
<label for=”system_name”>نام سیستم</label>
<input type=”text” class=”form-control required” id=”system_name” name=”system_name”>
<span id=”system_name-error” class=”help-block”></span>
</div>
</div>
<div class=”col-md-6″>
<div class=”form-group required” id=”form-system_type-error”>
<label for=”system_type”>نوع سیستم</label>
<input type=”text” class=”form-control required” id=”system_type” name=”system_type”>
<span id=”system_type-error” class=”help-block”></span>
</div>
</div>
<input type=”hidden” id=”system_id” name=”system_id”>
</div>
</div>
<div class=”modal-footer”>
<div class=”form-group col-md-6″ >
<button type=”submit” id=”btn_save” class=”btn btn-primary glyphicon glyphicon-floppy-disk”> ذخیره </button>
</div>
</div>
</form>
is this the form that comes up?
<input type=”text” class=”form-control required” id=”system_name” name=”system_name” value = {{$s->systemName}}>
let see if you will get the value displayed

Hi everyone. I really need your help. when page is redirecting its showing the link
laravel project?
yaap laravel project…
first you sould instal laravel passport in your project