Skip to content

Commit

Permalink
doc: Update Form.Element.setValue docs [prototypejs#154 state:fixed_i…
Browse files Browse the repository at this point in the history
…n_branch]
  • Loading branch information
gf3 committed Apr 6, 2010
1 parent e13bf37 commit 01bbaf5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/dom/form.js
Expand Up @@ -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);
Expand Down

0 comments on commit 01bbaf5

Please sign in to comment.