0

Hello I'm new to laravel I was trying to find the solution but unsuccessful. I manage to get the selected value using ajax but I cant show results in the same view that I selected from. Let me explain what I want to achieve.

  • User select the value(id) from dropdown (populated from DB)
  • the value id need to be pass to controller get new array of a query result
  • return an array to the same view with show what was selected in dropdown

Any suggestion I will appreciate.

Thank you.

1 Answer 1

2

What I understood is , you want to populate one select box based on another select box value,

He are some best start tutorial for you,

http://www.9lessons.info/2010/08/dynamic-dependent-select-box-using.html

http://blog.chapagain.com.np/using-jquery-ajax-populate-selection-list/

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for the tutorial I will go through them. The idea is to based on selection of Dropbox to get forms that are stored in DB and generate them below dropbox.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.