日期:2014-05-16 浏览次数:20698 次
<form role="form">
<div class="form-group">
<label for="adminname"><?php echo $logFormI18N['adminname'];?></label>
<input type="text" class="form-control" id="adminname"">
</div>
<div class="form-group">
<label for="password"><?php echo $logFormI18N['password'];?></label>
<input type="password" class="form-control" id="password"">
</div>
<button id="bt1" class="btn btn-default"><?php echo $logFormI18N['submit'];?></button>
</form>
<button id="bt2"></button>
$(document).ready(function(){
$('#bt').click(function(){
$.ajax({
url : "./../system/login.php",
data : {name : “name”, sex : "sex"},
type : 'post',
dataType : 'html',
success : function(html, status){
alert(html);
alert(status);
},
error : function(a,b,v){
alert(a.status);
alert(a.readyState);
},
});
});
});