部分html代码
。。。。。。
<tr>
<td class="quest">8、您容易忘事(健忘)吗?</td>
<td class="line1"><input name="pinghe8" type="radio" value="5" checked="checked"></td>
<td class="line1"><input name="pinghe8" type="radio" value="4"></td>
<td class="line1"><input name="pinghe8" type="radio" value="3"></td>
<td class="line1"><input name="pinghe8" type="radio" value="2"></td>
<td class="line1"><input name="pinghe8" type="radio" value="1"></td>
</tr>
</table>
<input type="submit" class="btn" value="提交" onclick="submi()"/>
</form>
JS
<script type="text/javascript">
mui.init()
function submi(){
var value;
for(var )
var value = $('input[name="pinghe8"]:checked').val();
var pinghe;
console.log(value);
pinghe=parseInt(value);
console.log(pinghe);
}
</script>