意见反馈

This commit is contained in:
whimlex 2015-04-24 15:02:32 +08:00
parent 650ffd4397
commit 85e1262769
2 changed files with 12 additions and 1 deletions

View File

@ -149,7 +149,18 @@ function cookieget(n)
$("#textCount").text(49-$("#subject").val().length)
}
})
$("#subject").keyup(function(){
var curLength=$("#subject").val().length;
if(curLength>=50){
var num=$("#subject").val().substr(0,49);
$("#subject").val(num);
}
else{
$("#textCount").text(50-$("#subject").val().length)
}
})
})
</script>
<div class="scrollsidebar" id="scrollsidebar" style="float: right">
<div class="side_content">

View File

@ -121,7 +121,7 @@ $(document).ready(function(){
$("#subject").val(num);
}
else{
$("#textCount").text(49-$("#subject").val().length);
$("#textCount").text(50-$("#subject").val().length);
}
})
})