chippy | This package is deprecated
kandi X-RAY | chippy Summary
kandi X-RAY | chippy Summary
This package is deprecated. Please see Yin and Yang: using Glow and GLFW.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of chippy
chippy Key Features
chippy Examples and Code Snippets
Community Discussions
Trending Discussions on chippy
QUESTION
My dropdown lists food types, once an item is selected another dropdown is displayed and gets populated with associated foods (fetched from database using jQuery and AJAX).
Now when I add another field (for multiple pickings), the type picked from the previous dropdown carry over to the appended dropdown affecting both fields. This must have something to do with manipulating arrays but I can't seem to get my head around the logic and code structure of it.
Here is my code: HTML
...ANSWER
Answered 2018-Feb-21 at 14:26I am not sure i completly understood your question, but as far i see is here:
var list = $(".selectOrder").val();
You are picking the value by class name, but i guess you should do it with this
keyword, to pickup value from changed select.
var list = $(this).val();
And also at setting value to the select:
$('.selectItem').html("Select a menu item"+data);
Would be:
$(this).next().html("Select a menu item"+data);
Is this what you need?
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install chippy
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page