How would you change or set the value of an input in a jquery variable object. For example:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script>
htmlString = '<div><input name="hello" value="AAAAAAAA" /> </div>';
$htmlString = $(htmlString);
$htmlString.find('[name="hello"]').val('world')
console.log( $htmlString.find('[name="hello"]').val() );
console.log( $htmlString.prop('outerHTML') );
</script>
The value of [name="hello"] shows to be 'world' in the first console.log, but in the second it shows that it is still 'AAAAAAAA'. I am needing it to stay as 'world'.