87,997
社区成员




<script type="text/javascript">
function get(obj) {
if (document.getElementById("customer").value=="") {
alert('请选择');
return;
}
if (document.getElementById("content").value=="") {
alert('请输入');
return;
}
obj.disabled = true;
$.ajax({
url: "customer.php",
type: "Post",
data: {"customer": + $("#customer").val(),"content": + $("#content").val()},
dataType:"json",
timeout: 30000,
success: function(msg) {
obj.disabled = false;
if (msg == "ok") {
alert("成功。")
return;
}
if (msg == "error") {
alert("失败!")
return;
}
alert(msg);
}
})
}
</script>
<div class="form">
<form name="form1" action="mem_mge.php" method="post" id="form1" onSubmit="return" enctype="multipart/form-data">
<label>选择客服<span style="color:#C0C0C0"></span>:</label>
<select name="customer" id="customer" onchange="self.location.href=options[selectedIndex].value">
<option value="1">客服1</option> <option value="2">客服2</option>
</select>
<label>发送消息<span style="color:#C0C0C0"></span>:</label>
<textarea class="form_textarea radius4" id="content" name="content" rows="" cols=""></textarea>
<input type="hidden" name="save" id="save" value="1" />
<input id="Button1" type="button" value="提交" onClick="get(this)" />
<!--<input type="submit" name="Submit" id="Submit" class="form_submit radius4 blue blue_borderbottom" value="提交" />-->
</form>
</div>