asp中javascript里如何设置控件属性
<scripttype="text/javascript">functionCheckUserName(obj){$.ajax({type:"Post",url:"Reg...
<script type="text/javascript">
function CheckUserName(obj){
$.ajax({
type:"Post",
url:"Register.aspx",
data:"action=ajax&userName="+obj.value,
success:function(msg){
if(msg=="false"){
document.getElementById("Butuse").Enabled="true";
$("#Labwrong").fadeIn("slow");
}
else{
$("#Labwrong").fadeOut("slow");
}
}
}
);
}
</script>
Butuse是button的ID 展开
function CheckUserName(obj){
$.ajax({
type:"Post",
url:"Register.aspx",
data:"action=ajax&userName="+obj.value,
success:function(msg){
if(msg=="false"){
document.getElementById("Butuse").Enabled="true";
$("#Labwrong").fadeIn("slow");
}
else{
$("#Labwrong").fadeOut("slow");
}
}
}
);
}
</script>
Butuse是button的ID 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询