반응형 Programming Language/Javascript47 (스크랩)crossSelectBox 출처http://blog.jeremymartin.name/2008/02/easy-multi-select-transfer-with-jquery.html [js] $().ready(function() { $('#add').click(function() { return !$('#select1 option:selected').remove().appendTo('#select2'); }); $('#remove').click(function() { return !$('#select2 option:selected').remove().appendTo('#select1'); }); }); [html] $().ready(function() { $('#add').click(function() { return !$('#sele.. 2017. 9. 4. 변수와 프로퍼티 var로 선언하면 변수. var a = "a"; this로 선언하면 프로퍼티. this를 통해 b를 선언하게 되면, b는 해당 객체의 프로퍼티이다. this.b = "b"; 2017. 7. 26. 이전 1 ··· 7 8 9 10 다음 반응형