목록삽질의 리포팅 (49)
Without haste, but without rest
//전체선택/해제 function jsCheckAll() { var status = $("#checkAll").attr('checked'); if(status == 'checked'){ $(".checkRow").attr('checked', 'checked'); } else { $(".checkRow").attr('checked', false); } }
var data={}; $('.tbl_task').find('tr').each(function(){ var cls=$(this).attr('class'); var row={}; $(this).find('td textarea').each(function(){ row[$(this).attr('name')]=$(this).val(); }); data[cls]=row; }); console.log(data);
$(function() { $('textarea').each(function() { $.data(this, 'default', this.value); }).focus(function() { if (!$.data(this, 'edited')) { this.value = ""; } }).change(function() { $.data(this, 'edited', this.value != ""); }).blur(function() { if (!$.data(this, 'edited')) { this.value = $.data(this, 'default'); } }); }); This is the default text This is another text box
지금 홈페이지를 만들면서 맨위에 메뉴를 넣고 스크롤시 항상 붙어있게 하려고 position:fixed로 해놓았다. 5대 브라우저중 유일하게!!! IE에서만 메뉴가 고정되지 않고 absolute되어있는 것이다. (아..내가 이것때문에 을마나 고생을 한건지..ㅠ) 구글느님에게 수업이 "따라다니는 메뉴", "고정된 메뉴"라 엄청나게 질물은 했지만 돌아오는 결과는 모두 position:fixed였다. 너무 답답한 마음에 마지막으로 "ie9 position fixed"라고 검색하고 나서 나와 같은 문제를 격고 있는 페이지를 발견하였다. position:fixed breaks in IE9라는 제목으로 포스팅되었다. stackoverflow라는 사이트로 이름에서 느껴지는 포스로 좋아하는 사이트이다.. ;-) 영어로 ..