Multiple elements, same/one ajax call [Solved]
Hi, I am a newbie here who is just learning AJAX/JQuery. I am writing something and am stuck and need help.
Imagine this: I have a form with 3 drop down menus each menu has a associated input box.
Each menu represents a product. The boxes is to show the price.
I have managed to get this working with 1 product now I want to add many products.
So say I have 3 rows.. each has a menu (product) and associated box (price). If I choose a product in Row 1, it fetches the price from database and fills it in Price box. Now I have added Row 2, 3. I want to dynamically detect which Row I am choosing so the price gets put in, inside the right box. How can we dynamically do this? OR how can we get it so the function call detects what's changed and then populate's the right price box?
Thanks