Setter documentation

Setter sets the value of a form field when a ink is activated.

Example

<form action="#" method="post">
<p><a class="setter value-01/01/2000 targetEl-settertext" href="#setter">Set the value of the text field</a></p>
<p><input id="settertext" name="settertext" type="text" /></p>
<p><a class="setter value-Option%203 targetEl-setterselect" href="#setter">Set the value of the select list</a></p>
<p><select id="setterselect" name="setterselect"> <option value="Option 1">Option 1</option> <option value="Option 2">Option 2</option> <option value="Option 3">Option 3</option> </select></p>
</form>

Settings

Valid elements

a elements (links)

Classname

setter

Attributes

None

CSS parameters (what's this?)

targetEl (required)
Must be set as the id of the element you want to set the value of
value (required)
Must be set as the value you want to set the target element to. This value should be HTML-encoded (i.e. %20 instead of spaces)