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

Комментарии • 42

  • @sankhadeepsarkar7332
    @sankhadeepsarkar7332 3 года назад +1

    This video helped me in a way I can't explain. Much love to the creator.

  • @andreihazaelmendozaesquive9546
    @andreihazaelmendozaesquive9546 4 года назад +1

    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.

  • @maheshlowe907
    @maheshlowe907 2 года назад +1

    This was helped me to find the path for my target.

  • @govinthanlk3486
    @govinthanlk3486 2 года назад +1

    thank you for your video.....its help for me for my project.....very thankyou

  • @AldiJavier
    @AldiJavier 2 года назад

    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?

  • @IbrahimAli-wd
    @IbrahimAli-wd 2 года назад +1

    Thanks boss🥰🥰🥰

  • @yemannmyoe5918
    @yemannmyoe5918 9 месяцев назад

    Can I know how to solve the edit blade? Sir

  • @thirawatyaekmumngam7241
    @thirawatyaekmumngam7241 Год назад

    Thank you very much.

  • @muhsinsalam
    @muhsinsalam 4 года назад

    How can I get another field name from same table dependently

    • @ABNATIONProgrammerz553
      @ABNATIONProgrammerz553  4 года назад

      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.

  • @amosabugri7013
    @amosabugri7013 4 года назад

    Hello Sir am stuck, my sub_category is showing processing with no values. please help me

    • @ABNATIONProgrammerz553
      @ABNATIONProgrammerz553  4 года назад

      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

    • @amosabugri7013
      @amosabugri7013 4 года назад

      @@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.

    • @ABNATIONProgrammerz553
      @ABNATIONProgrammerz553  4 года назад +1

      @@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.

    • @amosabugri7013
      @amosabugri7013 4 года назад

      @@ABNATIONProgrammerz553 thanks for the reply. Bro can I send u my files or show u what is in my controller, view and routes

    • @ABNATIONProgrammerz553
      @ABNATIONProgrammerz553  4 года назад

      @@amosabugri7013 you can send me your files soon i view it. You can send me your repository or mail me abnation553@gmail.com

  • @sidrasaad6268
    @sidrasaad6268 4 года назад +1

    Nice content. Nice videos they help everyone a lot. Keep it up programmer. 👍

  • @mr.shafiqahmadbhutta804
    @mr.shafiqahmadbhutta804 3 года назад +1

    This source code & video helped me in a way.

  • @double8tz
    @double8tz 2 года назад

    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?

  • @roberto6uzman
    @roberto6uzman 3 года назад +1

    tahnks!

  • @alvarocampos1495
    @alvarocampos1495 3 года назад +1

    thanks from brasil! I watched so many videos to do it and finally worked for me

  • @roslyndihambou1600
    @roslyndihambou1600 4 года назад +1

    Thanks

  • @ngebolangria1060
    @ngebolangria1060 2 года назад

    Hi, I tried following your tutorial, but in the resulting dropdown it's showing nothing

  • @shahidjutt5656
    @shahidjutt5656 3 года назад

    idk why i am getting error "get 500 (Internal Server Error)"

  • @gatotariesmunandar2734
    @gatotariesmunandar2734 3 года назад

    thank you. iloveu

  • @Hasan10474
    @Hasan10474 4 года назад +1

    source code brother?

    • @ABNATIONProgrammerz553
      @ABNATIONProgrammerz553  4 года назад

      I have code in the description...

    • @Hasan10474
      @Hasan10474 4 года назад +1

      @@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."

    • @ABNATIONProgrammerz553
      @ABNATIONProgrammerz553  4 года назад +2

      @@Hasan10474 I will upload it give me a time

    • @Hasan10474
      @Hasan10474 4 года назад

      @@ABNATIONProgrammerz553 will be very thankful to u sir!!

    • @friskasianturi3436
      @friskasianturi3436 4 года назад

      @@ABNATIONProgrammerz553 will be very thankful sir :)

  • @andreihazaelmendozaesquive9546
    @andreihazaelmendozaesquive9546 4 года назад +1

    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.

    • @mandeepdhundwa
      @mandeepdhundwa 3 года назад

      It's working with creat method I mean in post method but not in put method

    • @mandeepdhundwa
      @mandeepdhundwa 3 года назад

      How to pass /show Ticket{id} here how to pass id in url