/**拼團包團展開**/ function groupShow(type){ if(type == '1'){ //$("input[name=group_type][value='1']").prop("checked",true); $( "#group1" ).slideDown(400); $( "#group2" ).hide(); $( "#group3" ).hide(); }else if(type == '2'){ //$("input[name=group_type][value='2']").prop("checked",true); $( "#group1" ).hide(); $( "#group2" ).slideDown(400); $( "#group3" ).hide(); }else{ $( "#group1" ).hide(); $( "#group2" ).hide(); $( "#group3" ).slideDown(400); } } //顯示問題框 function showQuestion(){ if( $( "#quShow" ).is( ":hidden" ) ){ $( "#quShow" ).show(); }else{ $( "#quShow" ).hide(); } } //清除問題框 function clearQuestion(){ $("#question_con").val(""); } //送出問題框 function sendQuestion(){ if($("#question_con").val() == ""){ alert(""); $("#question_con").focus(); return false; } $.ajax({ type: "POST", url: "/ajax/add_message_con.php", data: $("#messageform").serialize(), dataType: "json", cache: false, success: function(data) { if(data['status'] == "true"){ alert(""); location.reload(); }else{ alert(""); } } }); }