jquery设置页面内IFrame 里RadioButton的Text值
<asp:RadioButton ID="rbStepY1" runat="server" GroupName="a" Text="步骤1" onclick="rbStepN2.checked=true;" />
<asp:RadioButton ID="rbStepY2" runat="server" GroupName="a" Text="步骤2" onclick="rbStepN1.checked=true;" />
解析到html为
<input id="rbStepY1" type="radio" name="a" value="rbStepY1" onclick="rbStepN2.checked=true;" /><label for="rbStepY1">步骤1</label>
<input id="rbStepY2" type="radio" name="a" value="rbStepY2" onclick="rbStepN1.checked=true;" /><label for="rbStepY2">步骤2</label>
var t= $("#ifmProperty").contents().find("#rbStepY1").next().text();//获取值 t="步骤1"
$("#ifmProperty").contents().find("#rbStepY1").next().text("abc");//设置rbStepY1 的值为“abc”