意见反馈
This commit is contained in:
parent
650ffd4397
commit
85e1262769
|
@ -149,7 +149,18 @@ function cookieget(n)
|
||||||
$("#textCount").text(49-$("#subject").val().length)
|
$("#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>
|
</script>
|
||||||
<div class="scrollsidebar" id="scrollsidebar" style="float: right">
|
<div class="scrollsidebar" id="scrollsidebar" style="float: right">
|
||||||
<div class="side_content">
|
<div class="side_content">
|
||||||
|
|
|
@ -121,7 +121,7 @@ $(document).ready(function(){
|
||||||
$("#subject").val(num);
|
$("#subject").val(num);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$("#textCount").text(49-$("#subject").val().length);
|
$("#textCount").text(50-$("#subject").val().length);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
Loading…
Reference in New Issue