<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="jquery-1.6.2.js" type="text/javascript"></script>
<script src="inputlimit.js" type="text/javascript"></script>
<style type="text/css">
#TextArea1
{
width: 349px;
height: 53px;
}
</style>
</head>
<body>
<textarea rows="2" id="TextArea1"></textarea>
还剩下<span class="message"></span>字
<script type="text/javascript">
$("#TextArea1").inputLimit({ max: 10,className:"message",type:"word" })
</script>
</body>
</html>
- 1
- 2
前往页