jQuery Dynamic Dropdown

0
June 24, 2016

Am looking to design a form that deals with items in specific category. The form will have one dropdown box that dynamically displays data in the DB. Ok, check thats done. But, when a category is selected, i want another dropdown box to appear on the page that pulls data from the database dependent on which choice is selected in the first menu box. This second box will display sub categories. jQuery and AJAX seem to be the best choice however I am having trouble with the syntax and technical aspect of this. Thanks!

Comments See all(0)

Add comment
0
June 24, 2016

Did you ever read the parts from the Documentation.

I try to help you learn it yourself

!

You have to read following Documentation sites:

http://api.jquery.com/category/events/http://api.jquery.com/category/ajax/http://api.jquery.com/category/selectors/

At this pages is the answer of your question stored and I'm really sure that you find the right way by yourself.

Don't be shy give yourself a try!

Related Questions

Dynamically add dropdown menus and exclude selected options

Hello! As I mentioned in the title, I'm trying to build dynamic dropdown menus. Once user chooses from list option, the same option is excluded (disabled) from other dropdowns. So far I have built Read More

Views

10

Votes

0

Answers

1

June 18, 2016

Multi select dependant dropdown list

There are two dropdowns (categories and products) First dropdown C1 C2 C3 C4 Second dropdown is dynamic dropdown and it gets populated based on whats selected in first dropdown For C1 P1A, P1B Read More

Views

8

Votes

0

Answers

1

June 19, 2016

jQuery Cascading drop down issue on dynamic table row

Hi Guys, This is regarding an issue related to the dynamic html table row controls, binded events. I have a 2x2 html table (which will be n x 25), where we do have cascading drop downs. I have succes Read More

Views

8

Votes

0

Answers

0

June 19, 2016

Creating a product selector dependant on multiple dynamic dropdown questions (jQuery and/or PHP)

Hi guys, Basically this is what i'm trying to achieve. You have a number of questions as dropdowns starting with one, you select an option and then another dropdown's values will change dependant wh Read More

Views

15

Votes

0

Answers

2

June 21, 2016

Jquery Newbie, Dynamic dropdown menu submission

Hello I'm very new to JQuery and I'm working on a script that is a form with a Chained or Dependent dropdown menu for Year, Make & Model selector that is MySQL/PHP - JQuery. I'm at the point were Read More

Views

18

Votes

0

Answers

3

June 19, 2016

Populate 2nd dropdown based on results of 1st

At the moment I using a dynamic select to populate a dropdown. What I would like to do is display a 2nd dropdown with results based on the selection of the first. I have no idea how to go about this a Read More

Views

17

Votes

0

Answers

19

August 15, 2011

Accessing the selected value from a Dynamically generated DropDown List

I have created multiple Dropdown list dynamically with the class"selectAggreagate". But when I trying to get the selectedoption I cant get the value of dynamically generated one. This is my drop down Read More

Views

13

Votes

0

Answers

1

June 18, 2016

Adding dropdown dynamically

Hi, I want to offer my users a means where they can select an item from adropdown and select the quantity from another dropdown.  I don'tknow how many items they want in advance, so want to create th Read More

Views

17

Votes

0

Answers

5

June 18, 2016

Adding another level to a drop down menu using spf-dropdown.js within a Sharepoint Foundation site.

I'm using jQuery and spf-dropdown.js to add a dropdown menu feature to a Sharepoint Foundation 2010 site. One sub level is working fine but I'd like to add a 2nd sub level. As is, the code add Read More

Views

23

Votes

0

Answers

0

May 06, 2016

JQuery load() - not setting response to target div in child page ...!

I have three JSPs. First one is parent JS, second is child1 JSP and third is child2 JSP. Parent loads child1, child1 loads child2. First child is model popup and gets data for a select drop down dynam Read More

Views

9

Votes

0

Answers

1

June 21, 2016

jquery ul li menu problem for dynamic menus

Hi, Sorry if you find me on wrong place regarding this question. I am working on a ul li menu but these menus are being generated dynamically....like the structure Please select the country Read More

Views

15

Votes

0

Answers

1

June 23, 2016

Javacript dropdown menu (jquery) not working IE

I have a javascript menu dropdown menu that drops down fine in FF, but is being hidden in IE.  It is placed above a Flash movie and I'm not sure if that is the issue or not. I've included Read More

Views

58

Votes

0

Answers

27

August 15, 2011

setTimeout() and dynamic menu dropdown

I'm building a dynamic menu with CMS Drupal 7 and Views. This is the structure: Menu 1 Menu 2 Menu 3 When hovering on the first menu link (Menu 1), it will display a div that will show dynamic co Read More

Views

8

Votes

0

Answers

14

June 19, 2016

Dropdown Navigation Menu Dynamic Size

Afternoon, Experts -- I'm trying to make pretty a horizontal drop-down navigation menu on a friend's site and am having difficulty getting it to resize dynamically based on the page width. Cur Read More

Views

17

Votes

0

Answers

4

August 17, 2011

.click() only works in Firefox

I have a select dropdown menu that I am trying to generate dynamically. Here is the select: Select One Psychology* *Education jquery code: $(document).ready(function() { $('#psychology').cl Read More

Views

5

Votes

0

Answers

5

June 22, 2016

Popup box with dynamic drop down

Hi - I have an intranet at work - there is a clickable grid, which posts back date and time (for room bookings). The date and time posted back - then shows a popup, with a drop down list of items ava Read More

Views

13

Votes

0

Answers

0

June 21, 2016

jQuery - MOVE div with prependTo - How to save on CLICK?

Hi guys, I am really hope that somebody can help me out here. I am trying to move a complete DIV inside another with jQuery this works now this is my function: /\* Header Icons - Detach and AppendTo a Read More

Views

5

Votes

0

Answers

1

June 06, 2016

Linked pulldown lists using MySQL, PHP/JavaScript/Ajax

I am very new to web development and have a task to develop a web application that will basically show the user 5-15 pull down lists on one page, where each selection will limit the choices in all oth Read More

Views

22

Votes

0

Answers

2

August 15, 2011

Not able to handle dynamic <button> elements using :button selector

In the code given below, the buttons part of the original html code are being easily handled by the $(":button") selector. But when I create new buttons using jquery based on value selected from the d Read More

Views

12

Votes

0

Answers

1

June 17, 2016

dropdown list not working after cloning

I have the following code for cloning the cascading dropdownlist...it is working when the page is loading ...but after adding a dynamic row the dropdownlist in the newly added row is not work Read More

Views

11

Votes

0

Answers

5

June 18, 2016