gpt4 book ai didi

javascript - 根据单击的 更改选择选项

转载 作者:行者123 更新时间:2023-12-03 05:56:57 24 4
gpt4 key购买 nike

我以前见过这样做,但基本上我想做的是,当用户单击“传教士告别/返校”选项时,它会将他们重定向到带有下拉菜单的联系表单,其中“传教士告别”/Homecoming”已在联系表单中为他们选择,并为各种不同的 <a> 执行此操作标签和不同的选择选项。

我重定向到的 HTML 表单

<form class="contactform" method="post" action="php/events.php">
<input class="leftbox halfbox" name="contactname" placeholder="Contact's Name">
<input class="rightbox halfbox" name="eventname" placeholder="Event Name">
<input class="leftbox halfbox" name="contactphone" placeholder="Contact Phone">
<input class="rightbox halfbox" name="contactemail" placeholder="Contact Email">
<select class="fullbox stubborn" name="eventtype">
<option>What type of event is it?</option>
<option value="missionary">Missionary Farewell/Homecoming</option>
<option value="highlight">Athletic/Dance Featurette</option>
<option value="birthday">Birthday</option>
<option value="funeral">Funeral</option>
<option value="graduation">Graduation</option>
<option value="anniversary">Anniversary</option>
<option value="engagement">Engagement</option>
<option value="other">Other</option>
</select>
<textarea class="fullbox" id="textarea" name="otheroption" placeholder="If other, please specify"></textarea>
<input class="leftbox halfbox" name="eventloc" placeholder="Event Location">
<input class="rightbox halfbox" name="eventtime" placeholder="Event Duration">
<textarea class="fullbox" id="textarea" name="otherquestions" placeholder="Do you have any other questions/specifications?"></textarea>
<input class="fullbox stubborn" id="submit" name="submit" type="submit" value="Submit">
</form>

最佳答案

关于javascript - 根据单击的 <a> 更改选择选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39886766/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com