After going through some third-party code, I realized that they assign a value to the form using .val () and then represent the form.
$('#form-ID').val("Some Value");
This is a valid jquery statement, and if you do
$('#form-ID').val()
you get "Some Value"on the console but no HTML change is observed to reflect "Some value". Therefore, if there is no change to HTML, then:
source
share