JSFiddle - React, Tailwind, and code Playground
JavaScript
var new_form_resp = $('<div><input value="OLD" type="text"></div>');
var new_inputs = new_form_resp.find("input").val("NEW")
console.log(new_form_resp.html()); // doesn't have the value
console.log(new_form_resp.find("input").val()); // but it does have the value set...