상품옵션 삭제 및 초기화 방법^^

· 12년 전 · 4380
옵션상품.png


<form name="aaa">

<select name="test">

<option value="1">1</option>

<option value="2">2</option>

<option value="3">3</option>

</select>

<button name="test1" value="1선택" onclick="javascript:test('1');">

<button name="test2" value="2선택" onclick="javascript:test('2');">

<button name="test3" value="3선택" onclick="javascript:test('3');">

</form>

<script language="javascript">

function test(varRow)

{

document.forms[0].test.options[varRow].selected = true;

}

</script>





첨부파일

옵션상품.png (13.5 KB)
0회 2014-01-08 17:21
|
댓글을 작성하시려면 로그인이 필요합니다.

그누4 팁자료실

그누보드4와 관련된 팁을 여러분들과 함께 공유하세요. 나누면 즐거움이 커집니다.

+
제목 글쓴이 날짜 조회
11년 전 조회 5,213
11년 전 조회 4,802
11년 전 조회 7,087
12년 전 조회 4,081
12년 전 조회 4,895
12년 전 조회 8,101
12년 전 조회 8,372
12년 전 조회 5,130
12년 전 조회 6,155
12년 전 조회 4,381
12년 전 조회 9,231
12년 전 조회 5,528
12년 전 조회 1.1만
12년 전 조회 6,262
12년 전 조회 7,791
12년 전 조회 1.2만
12년 전 조회 5,334
12년 전 조회 5,461
12년 전 조회 7,212
12년 전 조회 4,416