Permalink
Browse files

doc: Update Form.Element.setValue docs [prototypejs#154 state:fixed_i…

…n_branch]
  • Loading branch information...
gf3 committed Apr 6, 2010
1 parent e13bf37 commit 01bbaf5a5d91d4963497d35451b4422976ac6b4a
Showing with 10 additions and 2 deletions.
  1. +10 −2 src/dom/form.js
View
@@ -554,8 +554,16 @@ Form.Element.Methods = {
/**
* Form.Element.setValue(@element, value) -> Element
*
* Sets `value` to be the value of the form control. Returns the element.
*
* Sets `value` to be the value of the form control. Note that for checkbox
* and radio inputs, sets `checked` property and does not alter `value`.
* Returns the element.
*
* ##### Example
*
* $('myelement').setValue('secret tunnels');
* Form.Element.setValue('myelement', 'space animals');
*
**/
setValue: function(element, value) {
element = $(element);

0 comments on commit 01bbaf5

Please sign in to comment.