Cascaded Dropdown in Laravel using Ajax & JQuery
HTML-код
- Опубликовано: 28 сен 2024
- In this video we will discuss about how we can populate data from database and show record on based of main category data. Data will reflect data on based of main category and populate on select option.
Download source code from the link
github.com/Abd...
Please don't forget to like & Subscribe
#laravel #php #laravel_crash_course
This video helped me in a way I can't explain. Much love to the creator.
Thank you very much!!
I have been investigate about a cascaded dropdown in Laravel and this was my absolute solution, other videos are so long and confusing and this is clear and short. Congratulations.
Thanks so much for such a nice feedback
This was helped me to find the path for my target.
thank you for your video.....its help for me for my project.....very thankyou
Thanks Allot
hello bro, i try with your tutorial, but when i append to select, its no value, but if i put in div, the array show up, do you have solution?
Thanks boss🥰🥰🥰
Can I know how to solve the edit blade? Sir
Thank you very much.
How can I get another field name from same table dependently
Hey Brother, you can do by creating relationship with the tables. You have to create joins for sending request to the ajax and receives response.
Hello Sir am stuck, my sub_category is showing processing with no values. please help me
Yeah Sure, Can you please check you database that it has relationship with the main category table. You can also check the error on the console for exact problem. Let me know once you go through it. Thanks
@@ABNATIONProgrammerz553 this is the error i have in the console. Am new to laravel and ajax so please what does it mean.
jquery-3.4.1.js:9837 GET dev.payroll.test:8080/admin/register/fetch/170100 404 (Not Found)
404 (Not Found)
send @ jquery-3.4.1.js:9837
ajax @ jquery-3.4.1.js:9434
(anonymous) @ register:914
dispatch @ jquery-3.4.1.js:5237
elemData.handle @ jquery-3.4.1.js:5044
ListPicker._handleMouseUp
Am actually doing this in a modal so i dont know if that is the problem.
@@amosabugri7013 Hello Bro, I think you have issue with your URL which not matched with your request. Please make sure that the ajax url should matches when you pass request to the controller. I will surely help you out from it.
@@ABNATIONProgrammerz553 thanks for the reply. Bro can I send u my files or show u what is in my controller, view and routes
@@amosabugri7013 you can send me your files soon i view it. You can send me your repository or mail me abnation553@gmail.com
Nice content. Nice videos they help everyone a lot. Keep it up programmer. 👍
This source code & video helped me in a way.
It works perfectly upon create, but when update the old value of subcategory wont be retained only shows the old value for category, how can I fix this?
tahnks!
thanks from brasil! I watched so many videos to do it and finally worked for me
You are welcome
Thanks
Hi, I tried following your tutorial, but in the resulting dropdown it's showing nothing
idk why i am getting error "get 500 (Internal Server Error)"
thank you. iloveu
source code brother?
I have code in the description...
@@ABNATIONProgrammerz553 where in the description??All I can see is this
"In this video we will discuss about how can we select main category that will populate sub category data dynamically from drop down.
We have used ajax and JQuery that will populate our data without ant page refreshing."
@@Hasan10474 I will upload it give me a time
@@ABNATIONProgrammerz553 will be very thankful to u sir!!
@@ABNATIONProgrammerz553 will be very thankful sir :)
Hello again, I'm trying to adapt this code to my project, but I have not been able to got it.
I would like to use it for the next rute, where I need to show the row with a id any, but just one.
Route::put('/showTicket/{id}','HistorialTicketController@update')->name('giveTicket.update');
I'm using put in this route, and I see in the ajax:
type: 'GET'
You are using GET and I don't know if it is possible to do what I want.
I hope you can help me. Thanks.
It's working with creat method I mean in post method but not in put method
How to pass /show Ticket{id} here how to pass id in url