Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

How many characters can also be entered

HTML code

<divclass="uploadWorks_con_e"><divclass="uploadWorks_con_title">Message description</div><divclass="uploadWorks_con_e_text"><textareaclass="uploadWorks_con_e_text_con" placeholder="Tell your bewilderment"></textarea><p>80</p></div></div>

JS code

$(function(){varvalue="";varlength=0;$(".uploadWorks_con_e_text_con").keyup(function(){if(length<=0){value=$(".uploadWorks_con_e_text_con").val().substring(0,80);$(".uploadWorks_con_e_text_con").val(value);}length=80-$(".uploadWorks_con_e_text_con").val().length;$(".uploadWorks_con_e_text").find("p").html(length);});})

About

How many characters can also be entered

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages