title: Update boostrap input externally with jQuery isn't showing
body: <p>I've tried:</p>
  
  <pre><code> $(element).attr("value", newValue);
  </code></pre>
  
  <p>which changed the value when I inspect the element but it doesn't show when I look at the actual input. I've then tried to .trigger different stuff but it doesn't work. (I've also tried $(element).val(newValue)).</p>
  
  <p>EDIT: Found the error, I imported an obj from the server in JSON format. When I parsed it, the property I wanted to use didn't work as expected in the val function. Only sometimes it worked. To fix it I, when parsing it, used eval() on the object property.</p>