当input被选中时候获取改input的多个属性值
<input name="selectTicket" class="selectTic" data-property="${couponDetai.id }" type="checkbox" value="${vo.discount }" onclick="selectTicket();">
<script>
function selectTicket(){
$('.selectTic').each(function(i){
if($(this).is(":checked")){
var selectTicket = $(this).val();
var id = $(this).attr("data-property");
alert(selectTicket+"---"+id);
}else{
}
});
}
</script>