如何使用JavaScript在RadioButtonList中设置值? [英] How to Set Value in RadioButtonList using JavaScript?
本文介绍了如何使用JavaScript在RadioButtonList中设置值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在RadioButtonList中将值设置为"null".
我有这个JavaScript,当双击它会取消选择它.但是我将其保存在数据库中仍然具有价值.
我只想将所选值设置为null.
在此先感谢.
Hi I want to set a Value of "null" in RadioButtonList.
I have this JavaScript that when doubleclick it will unselected. But I save it on the database it still have value.
I just want to Set the selected value to null.
thanks in advance.
推荐答案
嗨
您可以在这里找到很棒的示例:
.val() [
Hi
You can find awesome examples here:
.val()[^]
or you can set value of Selected Radiobutton like
(' 输入[@ name = "correctAnswer"]')[ 0 ].val(" );
('input[@name="correctAnswer"]')[0].val("this is new value");
谢谢,
Imdadhusen
Thanks,
Imdadhusen
这篇关于如何使用JavaScript在RadioButtonList中设置值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文