input type 을 option으로 바꿀려면 어떻게 하나요?
<input type="text" size="4" name="c[2]" id="tagin_net_qty" itemname="tagin_net_qty" value="<?=$c[2]?>" onKeyUp="tagin_net_comma(this);tagin_net_vat()" style="text-align:right;" >
------------------------------------------------위에함수를 아래로바꿀려고합니다.
<select name='c[2]' class="box" id="tagin_net_money" itemname="tagin_net_money" value="<?=$c[2]?>" onKeyUp="tagin_net_comma(this);tagin_net_vat()" required>
<option value=''>선택하세요</option>
<option value='8000' <? if("$c[2]" == "8000") echo "selected"; ?> onKeyUp="tagin_net_comma(this);tagin_net_vat()">8000</option>
<option value='10000' <? if("$c[2]" == "10000") echo "selected"; ?> onKeyUp="tagin_net_comma(this);tagin_net_vat()">10000</option>
<option value='14000' <? if("$c[2]" == "14000") echo "selected"; ?> onKeyUp="tagin_net_comma(this);tagin_net_vat()">14000</option>
</select>
---------------------------------------
onKeyUp="tagin_net_comma(this);tagin_net_vat()
이함수가 위치가 맞나요?
선택하면 자동으로 다음 input에 넘어가질않습니다.
부탁드립니다.
------------------------------------------------위에함수를 아래로바꿀려고합니다.
<select name='c[2]' class="box" id="tagin_net_money" itemname="tagin_net_money" value="<?=$c[2]?>" onKeyUp="tagin_net_comma(this);tagin_net_vat()" required>
<option value=''>선택하세요</option>
<option value='8000' <? if("$c[2]" == "8000") echo "selected"; ?> onKeyUp="tagin_net_comma(this);tagin_net_vat()">8000</option>
<option value='10000' <? if("$c[2]" == "10000") echo "selected"; ?> onKeyUp="tagin_net_comma(this);tagin_net_vat()">10000</option>
<option value='14000' <? if("$c[2]" == "14000") echo "selected"; ?> onKeyUp="tagin_net_comma(this);tagin_net_vat()">14000</option>
</select>
---------------------------------------
onKeyUp="tagin_net_comma(this);tagin_net_vat()
이함수가 위치가 맞나요?
선택하면 자동으로 다음 input에 넘어가질않습니다.
부탁드립니다.
댓글 2개
14년 전
option의 onKeyUp=.......모두 삭제
select 의 onKeyUp==>onchange 로 변경
select 의 onKeyUp==>onchange 로 변경
호박둥구리
14년 전
답변 감사합니다.
위 처럼 바꾸니 금액이 선택이 안됩니다.
소중한 답변 감사합니다.
위 처럼 바꾸니 금액이 선택이 안됩니다.
소중한 답변 감사합니다.
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기