Hi folks,
i had one html form to calculate total marks of 3 questions.this form can be seen in attached file.
for every question,we will have two buttons for 0 and 2.
and underneath one text field to display total.
initially, i have pressed 2 button for all questions and total 6 was displayed in total text box.
Task:if i want to give 0 marks to first question.then it will show 4 marks in total text box.but it is adding 0 marks to total 6 marks.
Please let me how to fix it.
Thanks in advance.....
Thanks
Ravi Gaddam
Loading

Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Dec 11, 2013, 12:45 AM EST
Here is the live example.
Anubhav ChaudharyRank #29 · 42K reputationPosted Dec 11, 2013, 1:02 AM EST
I havn't answered this question so I had no right to question your reply but Bro your Fiddle is not working properly, if I select 0, 2, 0 then the Result is shown as 0 but result should be 2, actually selecting 0 is deducting 2 from the result which was not asked. So, I think you should update your code
Ravi Gaddam60 reputationPosted Dec 11, 2013, 1:26 AM EST
Thanks a lot for your reply.
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Dec 11, 2013, 5:37 AM EST
Ravi Gaddam60 reputationPosted Dec 11, 2013, 10:06 PM EST
Thanks a lot first,
absolutely correct..