$("input[type='checkbox']").attr("checked",true).checkboxradio("refresh");此代码不起作用,但
$("input[type='checkbox']").attr("checked",true).checkboxradio("refresh");
它只能在Android设备上运行,但不能在IOS设备上运行
发布于 2015-12-07 20:12:26
线条是一样的!以下代码可以在iOS上运行。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="jquery.js"></script>
</head>
<body>
<label for="ch">Option</label>
<input type="checkbox" id="ch"/>
<button id="b">Check</button>
<script>
$("#b").click(function() {
$("input[type='checkbox']").attr("checked",true).checkboxradio("refresh");
});
</script>
</body>
</html>https://stackoverflow.com/questions/34130730
复制相似问题