x
1
<!-- 简单弹出对话框,包含一个表单 -->
2
<dialog id="favDialog">
3
<form method="dialog">
4
<section>
5
<p><label for="favAnimal">最喜欢的动物:</label>
6
<select id="favAnimal" name="favAnimal">
7
<option></option>
8
<option>盐水虾</option>
9
<option>小熊猫</option>
10
<option>蜘蛛猴</option>
11
</select></p>
12
</section>
13
<menu>
14
<button id="cancel" type="reset">取消</button>
15
<button type="submit">提交</button>
16
</menu>
17
</form>
18
</dialog>
19
20
<menu>
21
<button id="updateDetails">更新详情</button>
22
</menu>
23
24
<script>