일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- oracle
- 엑셀
- 윈폼
- 자바스크립트
- CONVERT()
- 리포팅서비스
- MS
- 단축키
- jQuery
- 태그를 입력해 주세요.
- microsoft
- c#
- 오라클
- DataGrid
- attr()
- 프로시저
- ASP
- windows
- Excel
- javascript
- Winform
- 마이크로소프트
- 윈도우
- 이클립스
- SSRS
- replace()
- 비주얼스튜디오
- aspnet
- IIS
- MSSQL
Archives
- Today
- Total
목록hasClass() (1)
DJ메탈짱™의 Free Style
[Jquery] javascript addClass, removeClass, hasClass #정규식
function hasClass(ele,cls) {return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));}function addClass(ele,cls) {if (!this.hasClass(ele,cls)) ele.className += " "+cls;}function removeClass(ele,cls) {if (hasClass(ele,cls)) {var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');ele.className=ele.className.replace(reg,' ');}}//call the functionsaddClass(document.getElementById("test"), "test");remo..
일(job)/FRONT
2016. 1. 21. 13:13