对于问题列表,我有三个单选选项:
<input type="radio" name="weight--'+index+'" value="not" />
<input type="radio" name="weight--'+index+'" value="somewhat" />
<input type="radio" name="weight--'+index+'" value="very" />
我有一个具有选定值的对象:
{"weight--0":"not","weight--1":"somewhat","weight--2":"very"}
如何将这些选项设置为使用 jquery 选择的?我什至不知道从哪里开始。