[jQuery] select-option 선택하기
# [jQuery] select-option 선택하기
1. option 선택 하기
- $("#scPrcTp1 > option[value=02]").attr("selected", "ture");
2. option 선택 값 가져오기
- var prcTp1 = $("#scPrcTp1 option:selected").val();
-------------------------------------------------------------------------------
...
<td WIDTH="20%" class="tb_brw_tt">처리유형</td>
<td WIDTH="30%" class="tb_w_tt" colspan="3">
<select id="scPrcTp1" name="sc.prcTp1" class="txtbox">
<option value="00" selected>미처리</option>
<option value="02" >해당사항없음</option>
<option value="03" >판매중지</option>
</select>
</td>
...
-------------------------------------------------------------------------------
댓글