The problem is not in jQuery, but that the component does not know about the changes you made (program changes to the HTML element do not fire events), so it does not know what it should change it looks like. You can verify this by manually entering in the field; this should work correctly even if jQuery is loaded.
You can use the element API to change the text instead:
$("#my-textfield").get(0).MaterialTextfield.change('test');
(where my-textfield
is the outer label
element) if the element is being executed for updating. Another option is to make the change directly, as you do it, but causing a "dirt" check on the element:
$("#my-textfield").get(0).MaterialTextfield.checkDirty();
Hope this helps!
source share