Skip to content Skip to sidebar Skip to footer

JQuery Functions, One To Display Dropdown On Click And Another To Get Selected Item From Dropdown

I have an unordered list (HTML below and Javascript code is below). The first function 'display_dropdown_multiple' works for me. However, I'm having issues with the second functi

Solution 1:

  1. IDs have to be unique
  2. There is no <option> which you're targeting.

Solution

Construct a <select> with options you intend to use with unique ids and then you're code will work fine.


Post a Comment for "JQuery Functions, One To Display Dropdown On Click And Another To Get Selected Item From Dropdown"