问一下大佬对文字拖拽之后就不好使了 怎么破解
附:代码
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title></title>
<script type="text/javascript" src="js/jquery/jquery-2.1.4.min.js"></script>
<style type="text/css">
::selection {
background: none; color:none;
}
</style>
</head>
<body>
<div style="width:100%;" id="touchArea">
<input type="checkbox" name="" id="a1" value=""/><label for="a1">a1</label><br />
<input type="checkbox" name="" id="a2" value=""/><label for="a2">a2</label><br />
<input type="checkbox" name="" id="a3" value=""/><label for="a3">a3</label><br />
<input type="checkbox" name="" id="a4" value=""/><label for="a4">a4</label><br />
<input type="checkbox" name="" id="a5" value=""/><label for="a5">a5</label>
</div>
<script>
$(document).ready(function(){
$("#touchArea").mousedown(function() {
$("input").mouseover(function(){
if($(this).is(':checked')){
$(this).removeAttr("checked");
}else{
$(this).prop("checked", true);
}
});
});
$("#touchArea").mouseup(function() {
$("input").mouseover(function(){
if($(this).is(':checked')){
$(this).removeAttr("checked");
}else{
$(this).prop("checked", true);
}
});
});
})
</script>
</body>
</html>