lab.naminsik
  • Javascript, jQuery
  • Reactjs
  • React Native
  • iOS
  • Android
  • AWS
  • Server
  • Html, CSS
  • Php
  • asp .net
  • SQL
  • Word Press
search
keywords
  • Javascript, jQuery 2016‧05‧03

    jQuery - input과 textarea 글자 입력수 제한

    해외에서 공유된 코드이다. 원문 : http://www.scriptiny.com/2012/09/jquery-input-textarea-limiter/ (function($) { $.fn.extend( { limiter: function(limit, elem) { $(this).on("keyup focus", function() { setCount(this, elem); }); function setCount(src, elem) { var chars = src.value.length; if (chars > limit) { src.value = src.value.substr(0, limit); chars = limit; } elem.html( limit - chars ); } setCount($(this)[0], elem); } }); })(jQuery);  이렇게 플러그인으로 […]

popular

  • [회고] Github Actions가 갑자기 안된다. (Waiting for a runner to pick up this job…)
  • lightsail로 sftp 업로드시 bitnami 계정 권한 거부 해결 방법
  • 가변 인수와 가변 인수의 최대값 구하기
  • sublime text2 sftp 접속시 encoding error
  • 크롬 브라우저 http 웹사이트에서 위치(지오로케이션) 가져오기 중단
  • Gulp - 시작전 준비하기
  • TOYOTA KOREA website renewal
  • 창 사이즈 읽어오기 scrollHeight / clientHeight / scrollTop (브라우즈별 차이점)
  • php- 날짜 비교 개월 수로 표현하기
  • react native - Text 컴포넌트에한 줄 내림 처리 (html의 br 태그 같은 처리)

comment

  • 드래그가 안 된다는 증상에서 콘솔 오류와 불러오는 파일...
  • 감사합니다!
  • 감사합니다~
  • 잘 해결 되셨다니 다행입니다!...
  • 정말 감사합니다. 덕분에 해결했습니다!...