Categories
How to get input value on button click?
there is a code:
<input type="text" /> <input type="submit" value="click" />
Answer the question
In order to leave comments, you need to log in
There are two ways: 1. Use controlled input 2. Use ref
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question