2015/01(3)
-
jquery selectbox
1. 현재 선택된(selected) 값(value) 구하기. $("#selBox option:selected").val(); 2. 현재 선택된(selected) 내용 구하기. $("#selBox option:selected").text(); 3. selectBox에 옵션 추가하기 - SelectBox 옵션 아래에 추가 $("#selBox").append("키보드"); - SelectBox 옵션 최상단에 추가 $("#selBox").prepend("마우스"); - 특정 위치 아래에 옵션 추가하기 $("#selBox option:eq(1)").after("키보드"); - 특정 위치 위에 옵션 추가하기 $("#selBox option:eq(2)").before("키보드"); 4. slectBox에 옵션 삭제하..
2015.01.22 -
[mysql] DB 백업 / db backup
1. BackUp 하는 방법 Commend 창의 mysql 관련 실행 파일의 경로에서 mysqldump -u아이디 -p패스워드 db명 > file명.sql 2. BackUp 한 Data 복구하는 방법 Commend 창의 mysql 관련 실행 파일의 경로에서 mysql -u test -p testdb source 파일명; 3. 특정 Table만 Backup 하기 mysqldump -u아이디 -p패스워드 db명 table명 > FileName.sql 백업한 파일에는 sql문으로 Table 생성 과 Data insert 구문이 자동으로 생성되어 저장된다. 4. 특정 Table의 원하는 data만 Backup 하기 mysqldump -u아이디..
2015.01.08 -
[PHP]html - <a>태그 <a href=”javascript:”>
An element is invalid HTML unless it has either an href or name attribute.If you want it to render correctly as a link (ie underlined, hand pointer, etc), then it will only do so if it has a href attribute.Code like this is therefore sometimes used as a way of making a link, but without having to provide an actual URL in the href attribute. The developer obviously wanted the link itself not to d..
2015.01.06