1. 程式人生 > >ajax和清空div下的輸入框

ajax和清空div下的輸入框

var params=new Object();
                    	 var channel = $('#modal-manage input:radio:checked').val();
         	         	 params['mfid']= userCode;
         	         	 params['channel']= channel;
         	         	 
         	        	 //請求獲取驗證碼
         	        		  $.ajax({
         	                          	url: "<%=basePath%>checkCode/getPw?t="+new Date().getTime(),
         	                            dataType: "json",
         	                            type: "post",
         	                            data: params,
         	                            success: function (data) {
         	                                if (data.status == "success") {
         	                                 	alert(data.result);
         	                                } else {
         	                                      alert(data.msg);
         	                                }
         	                            },
         	                            error: function (d) {
         	        		             	 alert("系統異常,請聯絡管理員");
         	        		                }
         	        		  });