I will create a select and would like it to update the number of records

-2

I am creating a system and in the part of registering products in php to a select with the option of how many products are going to be registered, I would like q when choosing the select update to appear the number of lines for registration, how can I proceed ?? ??

Gratitude = D

    
asked by anonymous 09.10.2017 / 08:33

1 answer

0

The best way is to create fields dynamically through javascript. When the user selects the number of products that will be registered, you trigger the event that will create the fields:

link

Note that the fields will be nested in the DIV identified by "container":

var container = document.getElementById("container")
    
09.10.2017 / 08:46