// [ select box 컨트롤 ] --------------------------------------------------------------///
// 셀렉트박스 초기화
//SelectBox 애완동물중 고양이 값 선택하기.
$("#ANI").val('2');
$("#ANI>option[value='2']").attr("selected", true);
//또는 옵션그룹이 있는Select Box 인경우
$("#ANI> optgroup >option[value='2']").attr("selected", true);
//선택된 값 읽어오기
$("#ANI option:selected").val();
$("select[name=ANI]").val();
//선택된 값 삭제
$('#ANI option:selected').remove();
//SelectBox 애완동물중 고양이 삭제
$("#ANI option[value='2']").remove();
jQuery("#ElementID").is(":checked")
if(jQuery("#ElementID").is(":checked"))
{
체크된 상태
}
else
{
체크가 해제된 상태
}
select box의 내용 가져오기
$("#select_box > option:selected").val();
select box의 값 설정
$("#select_box > option[value=지정값]").attr("selected", "true");
게시글 목록
| 번호 | 제목 |
|---|---|
| 12211 | |
| 12210 | |
| 12208 | |
| 12207 | |
| 12206 | |
| 12205 | |
| 20383 | |
| 12204 |
JavaScript
Fiddler - 데이타 송수신 상태 체크 프로그램
|
| 12203 | |
| 12202 |
PHP
php로 엑셀 만들기 입니다.
|
| 12201 | |
| 12199 | |
| 350 | |
| 12197 | |
| 12196 | |
| 12195 | |
| 12193 | |
| 12190 | |
| 12189 | |
| 12188 | |
| 12187 | |
| 12186 | |
| 12185 | |
| 12183 | |
| 12182 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기