Limit character input in the textarea including count.


<!DOCTYPE html>

<html>

<head>

         <title></title>

        

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

 

</head>

<body>

         <from>

                 <textarea></textarea>

         </from><br>

         count <label></label>

<script type="text/javascript">

         $("textarea").keyup(function()

         {

     var value= $("textarea").val();

     var count=value.length;

                 $("label").text(count);

         })

</script>

</body>

</html>


Post a Comment

If you have any doubts, Please let me know
Thanks!

Previous Post Next Post