웹코딩/Jquery
-
제이쿼리 모바일 Panel (오른쪽 또는 왼쪽 화면 띄우기)웹코딩/Jquery 2021. 4. 22. 14:36
The position of the panel on the screen is set by the data-position attribute. The default value of the attribute is left, meaning it will appear from the left edge of the screen. Specify data-position="right" for it to appear from the right edge instead. The display mode of the panel is set by the data-display attribute. The value of the attribute defaults to reveal, meaning the panel will sit ..
-
제이쿼리로 검색되게 하는법(영문 대소문자 상관없이검색)웹코딩/Jquery 2021. 3. 19. 11:43
제이쿼리로 검색되게 하는코드는 많은데 검색이 영문 대소문자 구별을 해서 불편하게 느껴졌습니다. 대소문자 구분하고 제이쿼리로 검색되게 하는코드는 많은것 같습니다 대소문자 구별안하는 소스 첨부해 올려봅니다. $('#id').keyup(function() { var val = $(this).val(); if (val == "") { $('#ul li').show(); } else { $('#ul li').hide(); $("#ul li:containsInput('"+val+"')").show(); } }); $.extend($.expr[":"], { "containsInput": function(elem, i, match, array) { return (elem.textContent || elem.innerT..