일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- CONVERT()
- microsoft
- c#
- aspnet
- 윈폼
- SSRS
- ASP
- DataGrid
- 이클립스
- 리포팅서비스
- 마이크로소프트
- jQuery
- 자바스크립트
- 태그를 입력해 주세요.
- javascript
- 윈도우
- MSSQL
- replace()
- 프로시저
- MS
- 오라클
- IIS
- 엑셀
- 비주얼스튜디오
- oracle
- Winform
- Excel
- 단축키
- windows
- attr()
- Today
- Total
목록addClass() (2)
DJ메탈짱™의 Free Style
// 2012/05/08 input type=text의 readonly true/false 설정 function UpdateCssClass(obj,type) { if (type == "EDIT") { $("#" + obj).removeClass("input02"); $("#" + obj).addClass("input00"); $("#" + obj).attr("readOnly",false); obj.readOnly = false; } else if (type == "READ") { $("#" + obj).removeClass("input00"); $("#" + obj).addClass("input02"); $("#" + obj).attr("readOnly", true); obj.readOnly = true..
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..