S
S
semki0962017-05-18 11:31:35
JavaScript
semki096, 2017-05-18 11:31:35

How to get input value in pure js without using .val(jQuery)?

How to get input value in pure js? Also interested in how to do this in Vue ?

PS. In my case, the input is generated by php - I wonder if Vuejs can get values ​​​​from such fields?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2017-05-18
@semki096

var test = document.getElementById("test").value
you can see it early on about vue, because for this you need to understand simple JS, everything is not so simple there.
But the link is here https://vuejs.org/v2/guide/forms.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question