I'm having one annoying problem with a script I didn't even write.
First of all, let me just point out the issue;
If you goto this address (site is in french): LINK
You'll notice that it's a dynamic calculator, if you choose "individual" and click next, it'll show you just 1 row but if you choose "family of two, three or more" it'll show you extra rows depending on the number you've picked.
What I wanna do here is IF the user chooses "family of two" or more, to separate the table in the next step by making the rows "Age" and "NSSF" the only variable fields while when he selects the "Class Type" for one of the family, it should be applied to all the rest at once.
I hope I wasn't too confusing in this.
For example, if I choose "family of 3" and click next, the next table should be split into 2, first the user has to:
- "Class Type" which will be selected only once but applied to the 3 persons in the family.
- "Couverture Ambulatoire"
- "Couverture Médicament "
- "Couverture Visites Médicales"
After the user finishes making his selection, he should then find another table below where he'll be able to select the "Age Range" and "NSSF" for each of the 3 persons separately. I can't be any clearer than this, I did my best
Anyway, here is the code which is all found in 1 single file. (attached below policy.php.txt)
Help is pretty much appreciated... thanks.