Multiple cart buttons [Resolved]

Posted by Jithuvarma under JavaScript on 5/4/2017 | Points: 10 | Views : 241 | Status : [Member] | Replies : 1
I work for a ecommerce site where there are products, with individual quantity and cart button on the same page.

All the quantity dropdowns are default loaded with 1. So when I click the "add to cart" button of item 1 I want the quantity dropdown of Items 2,3,4 to become blank at the button click event. How can I do this with javascript?

I don't have a clear code sample with me. Would appreciate any help :)




Responses

Posted by: Jitendrasoft09 on: 5/14/2017 [Member] [MVP] Starter | Points: 50

Up
0
Down

Resolved
Try to use createElement in javascript to add multi-item in Dropdownlist, similar thread share below.
http://stackoverflow.com/questions/28689993/add-multiple-options-in-dropdown-list-using-javascript

Jitendra Kumar
If my post helps you, plz mark as an answer.

Jithuvarma, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response