多个组或单选按钮
<h1>Question 1</h1>
<input type="radio" name="radio1" value="false" />
<input type="radio" name="radio1" value="true" />
<h1>Question 2</h1>
<input type="radio" name="radio2" value="false" />
<input type="radio" name="radio2" value="true" />
Run Code Online (Sandbox Code Playgroud)
如何检查jQuery是否检查了每个组中的单选按钮?
谢谢.
<input id="myCheckbox" type="checkbox" /> Please, please check me
<input id="myRadio" type="radio" /> Am I selected ?
Run Code Online (Sandbox Code Playgroud)
我想要以下行为:
我将如何以一种非常简单的方式做到这一点?
提前感谢您的回应.
<div id="message" style="display: none">
<!-- Here I want to place a message. It should be visible for 3 seconds.Then clear the div to get ready for the next message. -->
</div>
Run Code Online (Sandbox Code Playgroud)
如何使用JQuery执行以下操作?
1.将消息插入div,其中id ="message"并使div可见.2.使消息可见3秒钟.3.删除div"message"的内容.4.隐藏div然后在必要时从步骤1开始.
先感谢您.