input type 을 option으로 바꿀려면 어떻게 하나요? 정보
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에 넘어가질않습니다.
부탁드립니다.
댓글 전체
option의 onKeyUp=.......모두 삭제
select 의 onKeyUp==>onchange 로 변경
select 의 onKeyUp==>onchange 로 변경
답변 감사합니다.
위 처럼 바꾸니 금액이 선택이 안됩니다.
소중한 답변 감사합니다.
위 처럼 바꾸니 금액이 선택이 안됩니다.
소중한 답변 감사합니다.