Find Jobs
Hire Freelancers

get selected value from a dropdown to use it in another dropdown: Laravel

$10-30 USD

ที่ทำเสร็จแล้ว
โพสต์ มากกว่า 5 ปีที่ผ่านมา

$10-30 USD

ชำระเงินเมื่อส่งงาน
This is an easy task for laravel programmers: I'm using a dropdown to read a column from a database table. All i want is to get the selected value and use it to create a new query that will be populated in a new dropdown. What i need is: - To come out with the more efficient method and tell me why do you think that's the best way (ajax, or php only, or some laravel http request if possible) - To edit my files to write the necessary code (will give you ftp access) - To give me 15 minutes to answer my questions about your code. Please only apply if you are ready to do it right now. Use codeword: "laravel09" at the beginning of your message. Note: I'm using AdminLTE: [login to view URL] Here is my controller: public function selectsector() //this is the dropdown #1 that works fine { $sectors = DB::table('Sectors')->whereBetween('SectorID', [1, 10])->value('SectorID'); return view('besttradesview', ['sectors10' => $sectors]); } public function selectsubsector() //dropdown #2 not working { $subsectors = DB::table('Sectors')->where('parentid', $sectors)->get(); //this line is not working it does not recognize $sector variable return view('besttradesview', ['subsectors42' => $subsectors]); } View: <form method="GET"> <div class="selectsector"> <Select class="selectsector" name = "sector"> @foreach($sectors10 as $sector) <option>{{ $sector->SectorName }}</option> @endforeach </select> <div class="selectsubsector"> <Select class="selectsubsector" name = "subsector"> @foreach($subsectors42 as $subsector) <option>{{ $subsector->SectorName }}</option> @endforeach </select> </form> Routes: Route::get('kitysoftware/besttrades', 'SectorsController@selectsector'); Route::get('kitysoftware/besttrades', 'SectorsController@selectsubsector');
รหัสโปรเจกต์: 18263679

เกี่ยวกับโปรเจกต์

15 ข้อเสนอ
โปรเจกต์ระยะไกล
ใช้งานอยู่ 5 ปีที่ผ่านมา

กำลังมองหาการสร้างรายได้ใช่ไหม?

ประโยชน์ของการประมูลกับ Freelancer

กำหนดงบประมาณและกรอบเวลาของคุณ
รับเงินจากการงานของคุณ
อธิบายข้อเสนอของคุณในภาพรวม
ลงทะเบียนและเสนอราคาฟรี
หมอบหมายให้:
รูปอวาตาร์ของผู้ใช้
Hi, codeword: "laravel09" You can use either AJAX or preferably JQuery. The solution is simple. You need to create a jquery such that when user selects a sector from first dropdown, the jquery event is triggered and a function is called. Let us call this jquery function selectsubsector(). This function will make an API request to laravel by passing the selected sector from dropdown 1. The laravel function selectsubsector will return a json api instead of view to jquery function. Upon receiving json api from Laravel, the jquery function populates the second dropdown. If you haven't already assigned the project someone, I would be more than happy to implement it. Thanks
$30 USD ใน 2 วัน
5.0 (4 รีวิว)
3.8
3.8
15 ฟรีแลนซ์กำลังเสนอราคาโดยเฉลี่ย $35 USD สำหรับงานนี้
รูปอวาตาร์ของผู้ใช้
laravel09, Hi let me do the needful for you, ready to start and look forward to hear from you and work with you...thanks!
$55 USD ใน 0 วัน
5.0 (987 รีวิว)
8.4
8.4
รูปอวาตาร์ของผู้ใช้
Hi there, I am Senior Laravel developer. I will use axis or ajax to load data in another drop down while selecting drop down . Let's discuss with me more. Thanks
$30 USD ใน 1 วัน
5.0 (226 รีวิว)
7.9
7.9
รูปอวาตาร์ของผู้ใช้
Dear Hiring Manager, We can help you in the project. To show once dropdown value into another after selection of value in one dropdown. I am good in: php, codeigniter, laravel, jquery, google map api, MySQL. Let me know when we can discuss in more details and start working on it asap. Looking forward for your response. Thanks.
$40 USD ใน 1 วัน
5.0 (179 รีวิว)
6.9
6.9
รูปอวาตาร์ของผู้ใช้
Hey? How are you? I have reviewed "get selected value from a dropdown to use it in another dropdown: Laravel" .I have good skills for these (HTML, Javascript, Laravel, MySQL, PHP). I have been working for 7 yrs in this scope. While we contract and work in our jobs, I will get paid once you have confirmed satisfied result. If I do not deliver satisfied result, I will never get paid from you. We can discuss more details to understand more easily if you have other infos. Hope to work with you. Thank you.
$55 USD ใน 3 วัน
4.9 (186 รีวิว)
6.5
6.5
รูปอวาตาร์ของผู้ใช้
Hi I have gone through the requirements. Will do this select dropdown. I'm available to start now. Please share additional details. Regards, Mohan
$20 USD ใน 1 วัน
4.9 (155 รีวิว)
6.2
6.2
รูปอวาตาร์ของผู้ใช้
Hi sir, I'm readed your requirement, i can help you fix list bugs. I'm expert PHP, Wordpress, JQuery, Laravel, Codeigniter , Angularjs, Nodejs etc
$25 USD ใน 1 วัน
5.0 (24 รีวิว)
5.4
5.4
รูปอวาตาร์ของผู้ใช้
Dear you, I am Viet, I have 6 years in program and desgin website. My skill: PHP(Laravel), CMS: Wordpress and other skills: bootstrap, Html5, css3... I can do the job in 20 minutes Please send a message for me, we discuss more detail your project. Best regards!
$20 USD ใน 1 วัน
4.9 (12 รีวิว)
4.0
4.0
รูปอวาตาร์ของผู้ใช้
Hello Sir... Hope you doing well, I read your project description so please come for technical discussion and we understand the negotiate cost, timeline then we move proceed further, also i show my past work during discussion.... Thanks..
$25 USD ใน 1 วัน
4.0 (5 รีวิว)
1.8
1.8
รูปอวาตาร์ของผู้ใช้
Professional in Laravel and JS
$25 USD ใน 1 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
Hello there,,, i have a ready made code for this type of dependent dropdown in laravel .feel free to contact
$15 USD ใน 1 วัน
0.0 (0 รีวิว)
3.2
3.2
รูปอวาตาร์ของผู้ใช้
If you want to do it as mvc pattern and orm then hire me Relevant Skills and Experience Laravel, php, rest API, query builder,
$30 USD ใน 2 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
laravel09 . Web application : Laravel 5, Jquery, Ajax, bootsrap. I have experience with same project (dropdown Chapitre ---> dropdown question) with simple request ajax on change $(get){.... };
$20 USD ใน 1 วัน
0.0 (0 รีวิว)
0.0
0.0

เกี่ยวกับลูกค้า

ปักธงของ SPAIN
San Salvador, Spain
5.0
10
ยืนยันวิธีการชำระเงินแล้ว
เป็นสมาชิกตั้งแต่ มิ.ย. 15, 2011

การยืนยันลูกค้า

ขอบคุณ! เราได้ส่งลิงก์สำหรับเครดิตฟรีให้คุณทางอีเมลแล้ว
เกิดข้อผิดพลาดขณะส่งอีเมลของคุณ กรุณาลองอีกครั้ง
โลโก้ Freelancer Thailand / ภาษาไทย ช่วยเหลือและสนับสนุน FreelancerประเภทโปรเจคการประกวดFreelancerองค์กรแพ็กเกจสมาชิกโครงการ Freelancer ชั้นแนวหน้าการจัดการโปรเจคงานในพื้นที่Photo Anywhereหน้าจัดแสดงผลงานAPI สำหรับนักพัฒนาได้รับการยืนยันDesktop App เกี่ยวกับเกี่ยวกับเราวิธีใช้งานความปลอดภัยนักลงทุนแผนผังเว็บไซต์เรื่องราวข่าวออกสื่อทีมรางวัลข่าวประชาสัมพันธ์ร่วมงานกับเรา ข้อกำหนดนโยบายความเป็นส่วนตัวข้อกำหนดและเงื่อนไขนโยบายลิขสิทธิ์ข้อพึงปฏิบัติค่าธรรมเนียมและค่าบริการหุ้นส่วนEscrow.comLoadshiftWarrior Forum แอปโลโก้ Apple App Store โลโก้ Google Play
ไม่สามารถคัดลอกไปยังคลิปบอร์ดได้ โปรดลองอีกครั้งหลังปรับเปลี่ยนการอนุญาต
คัดลอกไปยังคลิปบอร์ดแล้ว
ผู้ใช้ที่ลงทะเบียน งานที่มีการโพสต์ทั้งหมด
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
กำลังโหลดตัวอย่าง
ได้รับอนุญาตสำหรับตำแหน่งทางภูมิศาสตร์
เซสชั่นการเข้าสู่ระบบของคุณหมดอายุและคุณได้ออกจากระบบแล้ว กรุณาเข้าสู่ระบบอีกครั้ง