Last active
October 5, 2018 15:41
-
-
Save dongkwan-kim/b1d22bb374e63e94a5a8769c64af9de8 to your computer and use it in GitHub Desktop.
More than 800
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function(){ | |
$(".textarea").off("keyup"); | |
$('.textarea').keyup(function () { | |
// 입력한 값을 구합니다. | |
var input = $(this).val(); | |
// 남은 글자 수를 구합니다. | |
var inputlength = $(this).val().length; | |
// 문서 객체에 입력합니다. | |
$('.length').html(inputlength); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment