I have some input
of text type followed by buttons
:
<input type="text" />
<button>inserir</button>
<input type="text" />
<button>inserir</button>
<input type="text" />
<button>inserir</button>
<input type="text" />
<button>inserir</button>
I need, by pressing the button, to get the value of input
above it.
How to do it?