日期:2014-05-17 浏览次数:20410 次
<form action="" method="get" name="form1" class="form js">
<fieldset>
<h1>填表</h1>
<div class="quick-fields">
<label>你想去的店铺</label>
<div class="quick-field-name">
<select name="storeid" id="storeid" >
<option value="">-请选择-</option>
<option value="bedcloth.php">床上用品</option>
<option value="computer.php">电脑</option>
<option value="mobile.php">手机</option>
</select>
</div>
<label>State</label>
<div class="quick-field-name">
<input type="text" name="emailaddress" placeholder="请填写电子邮件" id="emailaddress" />
</select>
</div>
</div>
<input type="submit" name="commit" value="提交" />
</fieldset>
</form>
<scrip>
$('#storeid').change(function(){
$("form").attr('action',$(this).val());
});
</script>