title: How can I change a numeric textbox value using code?
body: <p>I have a numeric textbox as follows:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;numeric-textbox id=&quot;value-field&quot; :default-value=&quot;0.00&quot; :min=&quot;0.00&quot; :format=&quot;'n2'&quot; :spinners=&quot;false&quot; @change=&quot;amountChanged($event)&quot; :disabled=&quot;amountDisabled&quot; /&gt;
  </code></pre>
  <p>How can I set the value in code?</p>
  <p>The things I've tried:</p>
  <ol>
  <li><p><code>$('#value-field').val(0.00);</code> - this works temporarily but changes back to the previous value when it gets the focus</p>
  </li>
  <li><p>I tried a model like <code>v-model=&quot;myValue&quot;</code> but changing the value in code doesn't update the field.</p>
  </li>
  </ol>
  <p>I can't figure out what I need to do to get it to change!</p>