http://jsfiddle.net/tearex/jFS2x/4/
<fieldset data-role="controlgroup" data-type="horizontal" >
<input name="btn1" id="a1" type="radio" />
<label for="a1">1 populate USA</label>
<input name="btn1" id="a2" type="radio" />
<label for="a2" class="bigga">2 populate Germany</label>
<select data-role="slider" id="how" >
<option value="naturally" accesskey="" >naturally</option>
<option value="forcibly" > forcibly</option>
</select>
</fieldset>
如何使停用的按钮立即变灰?
我试过这个:
document.getElementById("a1").disabled = true;
$("[id='how']").slider("disable")
但与滑块不同的是,在我单击另一个按钮之前,该按钮不会变为灰色。