<script type="text/javascript">
function goSelect(){
frm = document.form;
if(frm.searchSmart.value=='4'){
document.getElementById("smartArea1").style.display="block";
document.getElementById("smartArea2").style.display="block";
document.getElementById("smartArea3").style.display="none";
document.getElementById("smartArea4").style.display="none";
}else{
document.getElementById("smartArea1").style.display="none";
document.getElementById("smartArea2").style.display="none";
document.getElementById("smartArea3").style.display="block";
document.getElementById("smartArea4").style.display="block";
frm.searchKinds.value="01";
changeGoods();
}
}
</script>
<select name="searchSmart" onChange="goSelect();" style="padding-bottom: 2px;">
<option value="1" <%if(searchSmart.equals("1")){ %> selected <%} %>>1</option>
<option value="2" <%if(searchSmart.equals("2")){ %> selected <%} %>>2</option>
<option value="3" <%if(searchSmart.equals("3")){ %> selected <%} %>>3</option>
<option value="4" <%if(searchSmart.equals("4")){ %> selected <%} %>>4</option>
</select>
<select name="searchAge" id="smartArea1" style="display:none">
<option value="20" <%if(searchAge.equals("2")){ %> selected <%} %>>2대</option>
<option value="30" <%if(searchAge.equals("3")){ %> selected <%} %>>3대</option>
<option value="40" <%if(searchAge.equals("4")){ %> selected <%} %>>4대</option>
<option value="50" <%if(searchAge.equals("5")){ %> selected <%} %>>5대</option>
</select>
function goSelect(){
frm = document.form;
if(frm.searchSmart.value=='4'){
document.getElementById("smartArea1").style.display="block";
document.getElementById("smartArea2").style.display="block";
document.getElementById("smartArea3").style.display="none";
document.getElementById("smartArea4").style.display="none";
}else{
document.getElementById("smartArea1").style.display="none";
document.getElementById("smartArea2").style.display="none";
document.getElementById("smartArea3").style.display="block";
document.getElementById("smartArea4").style.display="block";
frm.searchKinds.value="01";
changeGoods();
}
}
</script>
<select name="searchSmart" onChange="goSelect();" style="padding-bottom: 2px;">
<option value="1" <%if(searchSmart.equals("1")){ %> selected <%} %>>1</option>
<option value="2" <%if(searchSmart.equals("2")){ %> selected <%} %>>2</option>
<option value="3" <%if(searchSmart.equals("3")){ %> selected <%} %>>3</option>
<option value="4" <%if(searchSmart.equals("4")){ %> selected <%} %>>4</option>
</select>
<select name="searchAge" id="smartArea1" style="display:none">
<option value="20" <%if(searchAge.equals("2")){ %> selected <%} %>>2대</option>
<option value="30" <%if(searchAge.equals("3")){ %> selected <%} %>>3대</option>
<option value="40" <%if(searchAge.equals("4")){ %> selected <%} %>>4대</option>
<option value="50" <%if(searchAge.equals("5")){ %> selected <%} %>>5대</option>
</select>
댓글
댓글 쓰기