Please help for my product buying page?

  1. c,d,e,f are 4 buttons(products)

requirement 1 :on clicking any of these

-> A div will render in which there are
a) - and + buttons and a count
b) an input field to enter description of product
(requirement 1 is completed)

-> on clicking + button a modal must appear which contain 2 buttons (1) repeat and (2) new

requirement 2 : on clicking repeat the count will increment by 1 (which means same product’s quantity increased)
on clicking new : a new div will render

data : the (1) “productDetails” object stores the quantity of product(each div)