收音机选择不刷新?为什么不刷新它?当我刷新它的页面时。
这是我的弹出窗口:
<a href="#popupMenuback" class='ui-btn-left' data-rel="popup" data-role="button" data-inline="true" >Done</a>
<div data-role="popup" id="popupMenuback" data-overlay-theme="b" data-icon='check' data-dismissible="false" >
<ul data-role="listview" data-inset="true" style="width:180px;" data-theme="c">
<li data-icon='check'><a href="#popupSave" data-rel="popup" data-inline="true" data-position-to="window">Save</a></li>
<li data-icon='delete'><a href="quote_details1.html?flag=changeProduct" data-inline="true">Discard</a></li>
<li><a href="" data-rel="back" data-inline="true">Cancel</a></li>
</ul>
</div>
当我点击放弃时,我在该页面上有一个翻转滑块:
<fieldset data-role="controlgroup" data-type="horizontal" name="deadline" id="deadline">
<label for="radio-choice-1">Ongoing</label>
<input type="radio" name="radio-choice" id="radio-choice-1" value="ongoing" /> <!-- checked="checked"-->
<label for="radio-choice-2">Valid until</label>
<input type="radio" name="radio-choice" id="radio-choice-2" value="validuntil" />
</fieldset>
我在pagebeforeshow上为quote_details1
更改了不同的值$("#radio-choice-1").attr("checked",true).checkboxradio("refresh");
更新
我将ID的名称更改为其他名称,并开始工作。
<input type="radio" name="radio-choice" id="radio-choice-1" value="ongoing" />
收件人:<input type="radio" name="radio-choice" id="selectOngoing" value="ongoing" />
<input type="radio" name="radio-choice" id="radio-choice-2" value="validuntil" />
至<input type="radio" name="radio-choice" id="selectValid" value="validuntil" />