My problem is that in JavaScript, when requesting input field to which I have written e.g "abc":
input_obj // <input type="text" value="">
input_obj.getAttribute("value") // returns: ""
input_obj.value // returns: "abc"
I want to get user input with getAttribute() but it does not update on the contrary to .value property. First one returns what's in the original HTML and the other what's currently on the screen.
Anyone knows how to get user input but with the use of attribute name in string?