怎样在Jquery中动态绑定RadioButtonList的选项?
之前使用jquery创建节点append到DIV中,明明设置了name属性,但IE6中还是选中不了。纳了闷了。
var NewNode = document.createElement("input");
NewNode.setAttribute("name", "sp");
NewNode.setAttribute("id", item.id);
NewNode.setAttribute("value", item.mc);
NewNode.setAttribute("type", "Radio");
$("#SP").append(NewNode);
现在想着有没有办法像select一样options.add(new Option(item.mc, item.id));就能搞定动态绑定RadioButtonList的选项的。不知道是不是我比较愚昧。
希望能得到各位的帮助!??jqueryie