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

· 12년 전 · 4384
옵션상품.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,215
11년 전 조회 4,803
11년 전 조회 7,090
12년 전 조회 4,082
12년 전 조회 4,896
12년 전 조회 8,101
12년 전 조회 8,373
12년 전 조회 5,131
12년 전 조회 6,157
12년 전 조회 4,385
12년 전 조회 9,232
12년 전 조회 5,531
12년 전 조회 1.1만
12년 전 조회 6,265
12년 전 조회 7,791
12년 전 조회 1.2만
12년 전 조회 5,336
12년 전 조회 5,462
12년 전 조회 7,213
12년 전 조회 4,416