Sandbox: JavaScript

Sets the value of a target input to the selected value in a select list.


  <select data-trigger="selectToSet" data-selecttoset-options="
    'target': '!div input'
<div class="form-group">
  <input type="text" name="html" value="" placeholder="..." class="form-control input-hg">

Behavior Options

These options apply only to the data- tag invocation.

Name type default description
target string ~ Selector to find the input to update.