I have this HTML code:
<div id="welcomename">
<h1>Welcome! What's your name?</h1>
<input type="text" class="form" name="name" placeholder="Your name here!" id="name"/>
<input type="button" onclick="clicked();" value="I'm ready!"/>
</div>
<br>
这段代码完全可行,但由于某种原因,我需要将<br>
放在div 'welcomename'
中。然而,当我这样做时,它就无法正常工作。
其他代码:
<div id="hiddenDiv" style="display: none;">
<h1 id="welcomehowareyou">How are you today, ?</h1>
<form id="welcomehowareyou2" method="post">
<select name="mood" onchange="popup(this.options.selectedIndex)">
<option value="" disabled selected>How are you?</option>
<option>I'm doing great, thanks!</option>
<option>I'm fine, but could be better</option>
<option>I feel absolutely terrible today.</option>
<!--<input type="submit" value="Done!"/>-->
</form>
<p></p>
</div>