DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   JavaScript / DHTML / AJAX (http://www.daniweb.com/forums/forum117.html)
-   -   JS: automatic calculate without click any button (http://www.daniweb.com/forums/thread98449.html)

yenyen Nov 26th, 2007 8:46 am
JS: automatic calculate without click any button
 
halo..i got some javascript problem..i need some help.
i have a hidden form value which contain of the TOTAL., let say the total is rm100.
then i have anohter two radio button and two text box, one radio button for one text box.
for the first radio button & textbox set, the user should insert the percentage; for the second radio button and terxt box set, the user should insert the ringgit malaysia.
then how can i get the value form the hidden and the text box and radio button, it will automatically calcualte the discount rate witout submit any button.
let say i have the hidden total is rm100, then i choose ringgit radio button and insert rm50 into the text box, then below there will display rm50(rm100-rm50)?..plz help..plz guide me some coding..thanx.


All times are GMT -4. The time now is 10:49 am.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC