我有一个带有一个“添加更多亮点”文本链接的文本字段,我需要的是当我每次点击添加链接时,我应该能够在另一个下方显示 3 个 div。
下面给出我的 HTML 代码;
<input size="20" id="high_light" type="text" maxlength="30" placeholder="Highlights of this offer" />
<span><a href="#" id="add"> + Add more highlights</a></span>
<div id="highlight1" style="display:none;"><input class="word_count2" size="20" name="high_light2" id="high_light2" type="text" maxlength="30" /></div>
<div id="highlight2" style="display:none;"><input class="word_count2" size="20" name="high_light2" id="high_light2" type="text" maxlength="30" /></div>
<div id="highlight3" style="display:none;"><input class="word_count2" size="20" name="high_light2" id="high_light2" type="text" maxlength="30" /></div>
谢谢阿吉什