I had posted earlier on the NaN issue. I have worked some more on my test file. Basically I want the user to select an option depending on whether he/she has Paracetamol in syrup or drops form. Once this is selected, automatically a different div for syrup or for drops should be seen depending on what the user selected earlier.
After this on pushing the calculate button, the output should be appropriate depending on the strength of the solution either for drops or syrup.
I have put together what I think code that should work but it stubbornly refuses to do otherwise. I have attached the relevant file.
If it doesn't work, obviously there is something wrong but what it is eludes me.
Any help will be appreciated greatly,