jQuery23 [jquery] button, input type 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748jQuery UI 버튼(Element) 앵커 체크 체크 1 체크 2 체크 3 라디오 1 라디오 2 라디오 3 $(function() { $('button').button(); $('a').button(); $('input[type="button"]').button(); $('input[type="submit"]').button(); $('input.one').button(); $('.set').buttonset(); }); Colored by Color Scriptercs jQuery UI 버튼(Element) 앵커 체크 체크 1 체크 2 체크 3 라.. 2017. 1. 30. [jquery] 파일첨부 후, 이미지 확인하기 HTML5 12345678910111213141516171819202122232425262728293031HTML5 파일: $(function() { $('#file').change(function(e) { if (window.File) { var input = $('#file').get(0).files[0]; var reader = new FileReader(); $(reader).on('load', function(e) { $('#result').attr('src', this.result); }); reader.readAsDataURL(input); } }); }); Colored by Color Scriptercs 파일: 2017. 1. 30. [jQuery] 글자수제한 # 1 2 3 4 5 6 7 8 9 0자 /200자 Colored by Color Scripter cs # 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 $('#textBox').keyup(function (e) { let content = $(this).val(); // 글자수 세기 if (content.length == 0 || content == '') { $('.textCount').text('0자'); } else { $('.textCount').text(content.length + '자'); } // 글자수 제한 if (content.length > 200) { // 200자 부터는 타이핑 되지 않도록 $(this).val($(this).val().su.. 2017. 1. 11. 이전 1 2 3 4 5 다음