trategy</code> demo)
      </label>
    </p>
    <p><input type="text"
              name="q"
              ts-req="/autocomplete"
              ts-req-strategy="last"
              ts-req-before="attr value, lessThan 2, prevent"
              ts-trigger="keyup changed delay 100"
              ts-target="#search-results"
              ts-swap="inner"
              pattern=".*\S\S.*"
              placeholder="Search..."/></p>
    <div id="search-results"></div>
  </div>

  <style>
    [name=q]:invalid { bac