0
I’m doing a restaurant sisteminha, and he’s a commando. But, like, there’s a select
of food orders, but I was wondering how I can do for when I click on the + sign appear another select
under what already has to order other food, because not always the customer wants only one thing.
I’m doing the system with PHP and Javascript.
Don’t have any test code? Either this with javascript or it can be with jquery?
– LocalHost
An idea would be a button (+) that when clicked, creates an html object of type DIV with an id and an incrementable name and inside that div another select with the same options. At the time of submitting the form, It will be necessary to see if the customer chose in different selects the same product and treat the repetition or, in the creation of the div, already put the previous select disabled and remove from the list of options of the new select created the option selected earlier. This will make a good workforce!
– Carlos Rocha