Sets the value of a target input to the selected value in a select list.
<p> <select data-trigger="selectToSet" data-selecttoset-options=" 'target': '!div input' "> <option>first</option> <option>second</option> <option>third</option> </select> </p> <div class="form-group"> <input type="text" name="html" value="" placeholder="..." class="form-control input-hg"> </div>
These options apply only to the data-
tag invocation.
Name | type | default | description |
---|---|---|---|
target | string | ~ | Selector to find the input to update. |