Category : html

I am using multiselect dropdown but not able to get old values(by using old(”) in laravel blade)on submit.Please tell where i am doing wrong.Below i am sharing code. <div class="form-group"> <label for="integration">Integration</label> <div class="select2-purple"> <select id="integration" class="form-control form-select form-select-lg col-lg-12 select2" multiple="multiple" aria-label=".form-select-lg example" data-dropdown-css-class="select2-purple" name="integration[]"> <option value=”>Select Integration</option> @foreach($integartion as $integartions) <option value="{{ $integartions->ecom_channel ..

Read more

Modal: <div class="modal fade" id="group_form" data-backdrop="static" role="dialog" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-body"> <select id="status" class="form-control"> <option value="1">Active</option> <option value="0" >Disabled</option> <option value="2" >Custom</option> </select> </div> <div class="modal-footer"> <button type="button" class="btn btn-primary save_button add_group"><i class="fas fa-save" aria-hidden="true"></i><span id="save_button_span"> Add</span></button> <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fas fa-window-close" aria-hidden="true"></i> Cancel</button> </div> </div> </div> </div> Steps: ..

Read more

I am unsure how I would display a single button for a certain Car by their ID. At the moment I have a loop that looks like this. @foreach ($car->maintenances as $maintenance) <td><a class="btn btn-info btn-sm" href="/maintenance/{{ $maintenance->id }}">See Maintenances done</a></td> @endforeach And since I have a car with more than one maintenance my webpage ..

Read more

I’m using an MySQL database to store the input of a HTML tag: . I want to fill in some HTML input fields with some Java by doing the following: <script> document.getElementById(‘ownName’).value = "{{$userFirstName}} {{$userSurname}}"; document.getElementById(‘ownEmail’).value = "{{$userEmail}}"; document.getElementById(‘managerName’).value = "{{$managerFirstName}} {{$managerLastName}}"; document.getElementById(‘managerEmail’).value = "{{$managerEmail}}"; </script> The script as it stands above is inserted in ..

Read more

I’m using v5 of ckeditorjs is there any way to add a new dropdown menu in the toolbar! The dropdown is something like this: When someone chooses an option in that dropdown it shows like in the image above with background blue! How can achieve something like this ? My Code for now: <script src="https://cdn.ckeditor.com/ckeditor5/31.1.0/decoupled-document/ckeditor.js"></script> ..

Read more

I have an application where an user can change his name via a pop-up. This is the method that handles the name change: public function changeVorname(Request $request) { $this->validate($request, [ ‘vorname’ => ‘required|max:255′, ]); Portal::query()->where(’email’, $request->email)->update([‘vorname’ => $request->neuer_vorname]); return redirect()->back()->with(‘message’, ‘Vorname erfolgreich geändert’); } This is the blade file with the modal: <div class="w-1/2 mb-4 ..

Read more

PHP CodeIgniter. My Submit form button is working properly in Desktop view but when I register from mobile and simply click create account button it doesn’t work just clicking on button no action is performed please anyone can help me out that what is the problem register.php <form class="login-form ajax_form" id="ajax_form" method="POST" action="<?php echo base_url(‘auth/do-register’);?>"> ..

Read more

I’m trying to update status. if status is 0 then on click it must update it to 1. but if status is 1 on click it must update it to 0. my controller public function status(Course $course) { if ($course->status == 0) { $course->update([‘status’ => ‘1’]); return redirect(‘/profile’)->with(‘statusOn’, ‘status on!’); } else { $course->update([‘status’ => ..

Read more

I’m creating a simple multiple selectable dropdown using jQuery amsify Select this is my User interface this is my user inter face code <label for="medium_id" class="col-form-label">Medium</label> <select class="form-control " multiple="multiple" id="medium_id" name="medium_id[]"> <option value="">Select Medium</option> @foreach( [$medium][0] as $medium) <option value="{{$medium->id}}">{{$medium->name}}</option> @endforeach </select> this is my Laravel storing to database code foreach ($request->medium_id as $medium) ..

Read more

Okay so I was watching a tutorial on how to use the laravel 8 framework but some of the code that works in that tutorial for some reason is not working for me this is the problem This is the Controller namespace AppHttpControllers; use IlluminateHttpRequest; use AppModelsCategory; use IlluminateSupportStr; use IlluminateSupportFacadesFile; class CategoryController extends Controller ..

Read more

I’m trying to make sure every field is required but this code only works on "input" tags but not on the select and textarea tags. Any help will be appreciated. Thanks! HERE IS MY BLADE <div class="tab"> <div class="form-group mb-3"> <select name="currency" class="choices form-control" id="devise{{ Auth::user()->cred->id }}" onchange="deviseSelect({{ Auth::user()->cred->id }})" required="true"> <option value="" selected disabled>choose</option> ..

Read more

I’m trying to make sure every field is required but this code only works on "input" tags but not on the select and textarea tags. Any help will be appreciated. Thanks! HERE IS MY BLADE <div class="tab"> <div class="form-group mb-3"> <select name="currency" class="choices form-control" id="devise{{ Auth::user()->cred->id }}" onchange="deviseSelect({{ Auth::user()->cred->id }})" required="true"> <option value="" selected disabled>choose</option> ..

Read more

When I add new table row it removes name attribute from input field how to solve this ?? eg. name="product_id[]" will be automatically removed from another input field. function addRow() { let quantity = 5; let product_price = 1.5 let product_id = “x1”; let product_name = “foo”; let tbody = document.getElementById(“tbody”); let row = tbody.insertRow(tbody) ..

Read more