If you want to use pure JavaScript instead of jQuery, try this:
Assigning .value equals jQuery function .val(v);
.value
.val(v);