diff options
Diffstat (limited to 'files/zh-cn/web/html/element/input/radio/index.html')
-rw-r--r-- | files/zh-cn/web/html/element/input/radio/index.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/files/zh-cn/web/html/element/input/radio/index.html b/files/zh-cn/web/html/element/input/radio/index.html index 0ffa30a831..b8020fd5f3 100644 --- a/files/zh-cn/web/html/element/input/radio/index.html +++ b/files/zh-cn/web/html/element/input/radio/index.html @@ -25,7 +25,7 @@ translation_of: Web/HTML/Element/input/radio <table class="properties"> <tbody> <tr> - <td><strong>{{anch("Value")}}</strong></td> + <td><strong><a href="#值">Value</a></strong></td> <td>A {{domxref("DOMString")}} representing the value of the radio button.</td> </tr> <tr> @@ -98,7 +98,7 @@ translation_of: Web/HTML/Element/input/radio <p><strong>Note</strong>: 如果在提交表单时没有选择任何单选按钮,则提交的表格数据中根本不包括单选组,因为没有值要报告。</p> -<p>It's fairly uncommon to actually want to allow the form to be submitted without any of the radio buttons in a group selected, so it is usually wise to have one default to the <code>checked</code> state. See {{anch("Selecting a radio button by default")}} below.</p> +<p>It's fairly uncommon to actually want to allow the form to be submitted without any of the radio buttons in a group selected, so it is usually wise to have one default to the <code>checked</code> state. See <a href="#selecting_a_radio_button_by_default">Selecting a radio button by default</a> below.</p> <p>Let's add a little bit of code to our example so we can examine the data generated by this form. The HTML is revised to add a {{HTMLElement("pre")}} block to output the form data into:</p> @@ -154,7 +154,7 @@ form.addEventListener("submit", function(event) { </thead> <tbody> <tr> - <td><code>{{anch("checked")}}</code></td> + <td><code><a href="#attr-checked">checked</a></code></td> <td>A Boolean indicating whether or not this radio button is the currently-selected item in the group</td> </tr> </tbody> |