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

· 12년 전 · 4435
옵션상품.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와 관련된 팁을 여러분들과 함께 공유하세요. 나누면 즐거움이 커집니다.

+
제목 글쓴이 날짜 조회
12년 전 조회 5,278
12년 전 조회 4,855
12년 전 조회 7,138
12년 전 조회 4,145
12년 전 조회 4,952
12년 전 조회 8,154
12년 전 조회 8,435
12년 전 조회 5,193
12년 전 조회 6,207
12년 전 조회 4,436
12년 전 조회 9,301
12년 전 조회 5,588
12년 전 조회 1.1만
12년 전 조회 6,326
12년 전 조회 7,849
12년 전 조회 1.2만
12년 전 조회 5,391
12년 전 조회 5,524
12년 전 조회 7,275
12년 전 조회 4,477