0
我怎樣才能啓用/禁用特定的文本框從篩選選擇的道場選擇特定的值..?例如,如果我選擇更新鮮,那麼該文本框應該禁用。如何禁用/啓用某些div中的文本框,以選擇dojo過濾的特定選項值select ..?
這裏我的代碼: 這是我的道場選擇的div
<div class="input select exp">
<label>Total years of Experience</label>
<select dojoType="dijit.form.FilteringSelect" name="sname" autocomplete="false" id="yoe">
<option value="Fresher">Fresher</option>
<option value="1+">One year</option>
<option value="2+">Two year</option>
<option value="3+">Three Year</option>
</select>
<span class="error">required</span>
</div>
,並在這個div我需要禁用或隱藏該文本框
<div class="input text">
<label>Current Designation</label>
<input type="text" value="" dojoType="dijit.form.ValidationTextBox" trim="true" id="sdd"/>
<span class="error">required</span>
</div>
請回復請幫助和任何幫助將是讚賞更多。
哦,非常感謝profMaxü節省很多時間致謝它的工作原理酷。 – user2474367