How to know if the click I leave the father div

Asked

Viewed 6 times

-2

Following my problem and : I have an array used foreach to percorelo

'> Amount result : Coloured
    Preta= > button 
    Verde= > button 
    Cor jeans= > button 
    Rosê= > button 
    Marsala= > button 
    

Size

    P = > button 
    M = > button 
    G= > button 
    GG= > button 
    

wanted to take the button click on his father div so consigor separates color and size the result I wanted was this

Black GG But when the customer clicks again and chooses any size the Gg was changed to what he chose thus also for the color the problem and q they have the msm class as could identify which class and which understand ?

  • Please edit the question to limit it to a specific problem with sufficient detail to identify an appropriate answer.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.