- 博客(0)
- 资源 (3)
空空如也
微信投票系统
微信投票系统有需要的可以下载看看/body>
<script type="text/javascript">
$(function(){
var maxsel = 1;
$(".option").on("click",function(){
var $option = $(this);
$option.toggleClass("option-sel");
$("#musicClick")[0].play();
});
$("#submit").on("click",function(){
var $btn = $(this);
$("#musicClick")[0].play();
if($btn.hasClass("disabled")) return;
var $answer = $(".ra_1");
var i=0;
var ans = "";
$answer.each(function(index,o){
if(i++ != 0){
ans += ",";
}
ans += $(o).attr("data-value");
});
var submitData = {
"aid":"29444",
"talker":"",
"answers":ans,
"action":"vote"
};
$btn.addClass("disabled");
});
$(document).on('ajaxBeforeSend', function(e, xhr, options){
$("#loading").show();
}).on("ajaxComplete ",function(e, xhr, options){
//$("#loading").hide();
});
2013-10-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人