gpt4 book ai didi

jQuery 隐藏/显示选择标签

转载 作者:行者123 更新时间:2023-12-01 08:27:02 25 4
gpt4 key购买 nike

我被要求创建一个带有选择标签的隐藏/显示函数。该功能几乎是当您单击选择标签中的选项之一时,它当然会打开与该 div 关联的 div。老实说我不知道​​如何实现这个功能。找到下面的 html 代码。

<div class="adwizard">
<select id="selectdrop" name="selectdrop" class="adwizard-bullet">
<option value="adwizard">AdWizard</option>
<option value="collateral">Collateral Ordering Tool</option>
<option value="ebrochure">eBrochures</option>
<option value="brand">Brand Center</option>
<option value="funtees">FunTees</option>
</select>
</div>

<div class="panels">
<div id="adwizard" class="sub-box showhide">
<img src="../images/bookccl/img-adwizard.gif" width="95" height="24" alt="AdWizard" />
<p>Let Carnival help you grow your business with our great tools! Lor ipsum dolor sit amet. <a href="https://www.carnivaladwizard.com/home.asp">Learn More</a></p>
</div>

<div id="collateral" class="sub-box showhide">
<p>The Collateral Ordering Tool makes it easy for you to order destination brochures and the sales DVD for that upcoming event. <a href="http://carnival.litorders.com/workplace.asp">Learn More</a></p>
</div>

<div id="ebrochure" class="sub-box showhide">
<img src="../images/bookccl/img-ebrochure.gif" width="164" height="39" alt="Brochures" />
<p>Show your clients that you're listening to their specific vacation needs by delivering relevant planning info quickly. <a href="http://productiontrade.carnivalbrochures.com/start.aspx">Learn More</a></p>
</div>

<div id="brand" class="sub-box showhide">
<p>Carnival Brand Center is where you'll find information on our strategy, guidlines, templates and artwork. <a href="https://carnival.monigle2.net/user_info.asp?login_type=agent">Learn More</a></p>
</div>

<div id="funtees" class="sub-box showhide">
<img src="../images/bookccl/img-funtees.gif" width="164" height="39" alt="Funtees" />
<p>Create your very own Fun Design shirts to commemorate that special occasion aboard a Carnival "Fun Ship!" <a href="http://carnival.victorydyo.com/">Learn More</a></p>
</div>
</div><!-- ends .panel -->
<a class="view" href="#">See All Marketing Tools</a>
</div>

最佳答案

我在上面获取了您的代码和 made a jsfiddle具有(我相信)您正在寻找的功能。

关于jQuery 隐藏/显示选择标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3017197/

25 4 0