只要统计radio里按yes的次数,怎样实现,如果按了yes再按no则减1,如果原来是no改成yes则次数加1,这个怎么实现,radio里的name和value我是下面这样定义的,代码片段如下:
只要统计被选择的yes的个数吧
[code="html"]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Yes | No | |
Has your relative had accidents because of weakness, dizziness, or inability to get around? | ||
Has use of the stove, oven or appliances become a safety problem because of forgetfulness? | ||
Are there hazardous conditions in his/her home, such as the bathroom and bedroom being on separate floors? |
[/code]