Examination_system/Examination_system-1/.svn/pristine/a0/a014c5327ad8377caa10652fffa...

63 lines
1.9 KiB
Plaintext

<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fns" uri="/WEB-INF/tlds/fns.tld" %>
<!DOCTYPE html>
<html>
<head>
<%@include file="../baseset.jsp" %>
<%@include file="../systemset.jsp" %>
<script src="${bonuspath}/static/plugins/layer/2.1/extend/layer.ext.js"></script>
<title></title>
<style type="text/css">
</style>
</head>
<body>
<div class="">
<div style="font-size: 20px">
<div>
<span>1</span>、 <span>1+1=?</span>
</div>
<div class="selectContent">
<input type="checkbox" value=""> A: <span><input type="hidden" value="1"> 1</span></input>;
</div>
<div class="selectContent">
<input type="checkbox" value=""> B: <span><input type="hidden" value="3"> 3</span></input>;
</div>
<div class="selectContent">
<input type="checkbox" value=""> C: <span><input type="hidden" value="4"> 4</span></input>;
</div>
<div class="selectContent">
<input type="checkbox" value=""> D: <span><input type="hidden" value="2"> 2</span></input>;
</div>
</div>
</div>
<script type="text/javascript">
$(function() {
checkboxSelect();
})
function checkboxSelect() {
$(':checkbox[type="checkbox"]').each(function(){
$(this).click(function(){
if($(this).prop('checked')){
$(':checkbox[type="checkbox"]').prop('checked',false);
$(this).prop('checked','checked');
}
});
});
}
$(".selectContent").dblclick(function() {
$(this).prevAll('.selectContent').find('input[type="checkbox"]').prop("checked",false);
$(this).nextAll('.selectContent').find('input[type="checkbox"]').prop("checked",false);
$(this).find('input[type="checkbox"]').prop("checked","checked");
})
</script>
</body>
</html>