diff options
-rw-r--r-- | user_guide/helpers/form_helper.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/user_guide/helpers/form_helper.html b/user_guide/helpers/form_helper.html index fa96424e1..10019291c 100644 --- a/user_guide/helpers/form_helper.html +++ b/user_guide/helpers/form_helper.html @@ -328,7 +328,7 @@ fourth parameter:</p> <br />
// Would produce:
<br />
-<label id="username">What is your Name</label></code>
+<label for="username">What is your Name</label></code>
<p>Similar to other functions, you can submit an associative array in the third parameter if you prefer to set additional attributes. </p>
<p><code>$attributes = array(<br />
'class' => 'mycustomclass',<br />
@@ -337,7 +337,7 @@ fourth parameter:</p> echo form_label('What is your Name', 'username', $attributes);<br />
<br />
// Would produce: <br />
-<label id="username" class="mycustomclass" style="color: #000;">What is your Name</label></code></p>
+<label for="username" class="mycustomclass" style="color: #000;">What is your Name</label></code></p>
<h2>form_reset()</h2>
<p>Lets you generate a standard reset button. Use is identical to <dfn>form_submit()</dfn>.</p>
|