input type="file" 의 value값 초기화 시키기
컨텐츠 정보
- 24,135 조회
- 8 추천
- 목록
본문
참고 하세여
<scRIPT LANGUAGE="ⓙavascript">
<!--
function option_1_view() {
var get_option_1 = document.getElementsByName("option_name_1[]");
var get_sub_1 = document.getElementsByName("sub_1[]");
var get_text_1 = document.getElementsByName("text_1[]");
if(get_option_1[0].value == "") {
get_sub_1[0].select();
document.selection.clear();
}
}
-->
</scRIPT>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="F9F6F5" align="center"><b><font color="036E12">옵션 1</font></b></td>
<td bgcolor="#FFFFFF" style="padding-left:10">
<input type="text" name="option_name_1[]" onkeyup="return option_1_view()">
</td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF" style="padding-left:10">
<table width="600" align="center" border="0">
<tr>
<td width="600">
image(소) : <input type="file" size="50" name="sub_1[]">
</td>
</tr>
<tr>
<td width="600">
image(배열 중 텍스트 값) : <input type="text" size="50" name="text_1[]">
</td>
</tr>
</table>
</td>
</tr>
</table>
관련자료
-
링크