Please I need your help HTML and JavaScript how to setup a radio button when depending on which button is checked a different calculation is run?
If the Yes - 5 days is checked - then the 5 days calculation is run. If the No - 30 days is checked - then the Yes button is closed and the 30 days calculation is run.
UPDATE:
First - sorry for placing the codes in the comment section. I am still learning about everything.
Second - I have only been doing JavaScript for about 3 weeks and HTML for about 4 weeks. I am taking courses from Lynda.com - HTML/Javascript/CSS. These courses are good but they teach the basic and the structure but not the indepth for all the tags and the attributes. In addition to Lynda.com, I am learning from other websites, the only thing is I am trying to learn the meaning of the tags which is not clear in some cases. Thank you Sebsemillia for the suggestion on codeschool.com I will be checking this site too.
The struggle and the challenge for me is I am doing this project (creating eForm) for work, while I am learning it. It is not easy.
- Third - Okay - this is where I am - thank you Anthony - now the calculation for 30 days is working but not the calculation for 5 days. Here is my https://jsfiddle.net/IS2016/751Lx395/1/ [1] - Anthony/Sebsemillia, as you could see I learned jsfiddle from both of you. Now I could use this site, to show codes in a better format.
Not sure what I missed.
Thank you
IreneS
[1] https://jsfiddle.net/IS2016/751Lx395/1/
UPDATE 2:
Please can someone let me know what am I missing - the 30 days calculation works but the 5 days calculation, does not work. Even though, both of the calculations are the same setup.
Your help is very greatly appreciated.
Thank you
Irene
UPDATE 3:
FYI - I figured it out, just incase anyone following this issue and wants to know. The reason it was not working on my side because the calculations for the 5 days and 30 days were in a separate files. Once I put all the codes in one file, it WORKED, yeh!. Now I need to figure out how do I leave them in a separate files and direct the function changeHandler(event)to these files. I will figure it out, meanwhile I will leave them in one file.
I thought some of you wants to know.
Thank you to Anthony and Sebsemillia for all the help.
Irene