所以,我有一個基於用戶類型的下拉列表。我想要的是當用戶點擊不同類型的用戶時,它會顯示不同。更改選擇選項,將導致不同的形式
<label for="user_type">Login Type:</label></td>
<td width="271"><select name="usertype" onChange="">
<option value="public">Public</option>
<option value="student"> Student</option
</select>
當公共用戶點擊,就會出現像在學生這個
<p>Username
<label for="username"></label>
<input type="text" name="username" id="username">
</p>
<p>Password
<label for="password"></label>
<input type="password" name="password" id="password">
</p>
而當用戶點擊一個形式,它會出現這樣的
<p>Student ID
<label for="student_id"></label>
<input type="text" name="student_id" id="student_id">
</p>
<p>Password
<label for="password"></label>
<input type="password" name="password" id="password">
</p>
感謝的形式。
這裏沒有問題...你只需提供一個作業規範,並希望別人爲你做它。這不是這裏的事情。您有義務嘗試自己解決問題,並在實際代碼出現問題時提供幫助 – charlietfl 2014-10-20 03:21:49