본문 바로가기

jquery

JQuery 와 다른 라이브러리 충돌시. http://docs.jquery.com/Using_jQuery_with_Other_Libraries Using jQuery with Other Libraries From jQuery JavaScript Library Jump to: navigation, search Contents 1 General2 Overriding the $-function3 Including jQuery before Other Libraries4 Referencing Magic - Shortcuts for jQuery [edit] General The jQuery library, and virtually all of its plugins are constrained within the jQuery namespace. As a g.. 더보기
JQuery 사용팁 모음. JQuery 를 사용하면서, 자주 쓰이고 제일 유용한것들(?) 정리.. 아마 이정도면 JQuery 로 왠만한건 구현 가능할듯? [code] //초기 실행 $(document).ready(function() { init(); }) //onclick 설졍 $('id').click( function(){ alert('click!!'); }) //onchange 설졍 $('id').change( function(){ alert('click!!'); }) //CSS변경 $('id').css('style', 'attribute'); //첫번째 tr를 빼고 전부 삭제 $('someTableSelector tr:not(:first)').remove(); //select 세팅 $("id option[value=Apple.. 더보기
JQuery 를 이용한 html와 script 와 분리 요새 prototype.js 를 이용해, javascript 를 깔끔하게, 효율적으로 만드는 방안으로 생각 하고 있는 도중, JQuery 를 알게 되었다. 그런데 이게, JQuery 예제를 이용하던 도중 이것을 이용하면, 디자이너가 HTML를 넘기면 id 및 name 를 세팅하여, 넘겨주면, 스크립트 작업 후 개발을 할때, 디자인이 수정되어도, 가공된 페이지에 변경 없이 작업을 할수 가 있다고 생각이 들었다. Greate!! 물론 prototype 를 이용해 할수도 있는데 흠.. JQuery 를 이용하면 좀더 효율 적으로 할 수 있다. taesuz.net 링크 보시다 시피, 분리가 될수 있다. html 디자인은 그대로 있지만, 링크나, 스크립트 제어 부분이 완전히 분리되어있다. 좀더 공부 하면, 보다 깔.. 더보기