Hi everybody !
I created:
A radio button (#q1)
and 2 fields one below the other (#q2 for "Nom" and #q3 for "Prénom(s)").
For two fields, I created a "side by side" using CSS with:
#q2, #q3 {display: inline-block;}
When my "Personne physique" radio button is checked and the side by side is disable, #q2 and #q3 are show (picture 1)
When my "Personne morale" radio button is checked and the side by side is disable, #q2 and #q3 are hide (picture 2)
When my "Personne physique" radio button is checked and the side by side is enable, #q2 and #q3 are show (picture 3)
When my "Personne morale" radio button is checked and the side by side is enable, #q2 and #q3 are show but disabled (picture 4)
I know that we must act with javascript but I do not know how. Does anyone have some code to offer me?
Thank you in advance.
Regards,