<div class="FormInput">
<select name="typeId" id="select" onchange="ChangeResourceType(this);">
</select>
<!--<html:select id="typeId" name="typeId" fistOption="{$jsp.common.select.firstoption#}" list="<%=PropKey.RESOURCE_TYPE_LIST%>">
<html:option label="typeName" value="typeId" />
</html:select>
--></div>
</div>
<div class="FormItemRight" >
<div styleClass="edit-talbe-label"><html:label label="{$jsp.cra.resource.speccifytype.amount#}"/></div>
<div class="FormInput"><input type="text" name="amount" id="amount" value='1'/></div>
</div>
</div>
就像上面这段代码怎么写在java代码里,然后怎么通过js切换