summaryrefslogtreecommitdiffstats
path: root/user_guide
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2009-02-04 13:29:09 +0100
committerDerek Allard <derek.allard@ellislab.com>2009-02-04 13:29:09 +0100
commit877ec2a3f6245362e78ffbaf712a81676850a075 (patch)
tree0d730fc61922bb06d5533f571d034f60291e171b /user_guide
parente37ab385f5c9ef8824d2ad4e31f544dbe6089095 (diff)
added a note explicitly outlining id as a settable option in form_dropdown()
Diffstat (limited to 'user_guide')
-rw-r--r--user_guide/helpers/form_helper.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/user_guide/helpers/form_helper.html b/user_guide/helpers/form_helper.html
index 730acb6d0..2bb2a4a3a 100644
--- a/user_guide/helpers/form_helper.html
+++ b/user_guide/helpers/form_helper.html
@@ -170,7 +170,7 @@ echo form_input($data);<br />
// Would produce:<br /><br />
&lt;input type="text" name="username" id="username" value="johndoe" maxlength="100" size="50" style="width:50%" /></code>
-<p>If you would like your form to contain some additional data, like JavaScript, you can pass it as a string in the
+<p>If you would like your form to contain some additional data, like Javascript, you can pass it as a string in the
third parameter:</p>
<code>$js = 'onClick="some_function()"';<br />
@@ -232,10 +232,10 @@ echo form_dropdown('shirts', $options, $shirts_on_sale);<br />
&lt;/select&gt;</code>
-<p>If you would like the opening &lt;select> to contain additional data, like JavaScript, you can pass it as a string in the
+<p>If you would like the opening &lt;select> to contain additional data, like an <kbd>id</kbd> attribute or JavaScript, you can pass it as a string in the
fourth parameter:</p>
-<code>$js = 'onChange="some_function()"';<br />
+<code>$js = 'id="shirts" onChange="some_function();"';<br />
<br />
echo form_dropdown('shirts', $options, 'large', $js);</code>