Hello, guys, I have a problem that is as follows.
I have 4 tags, but I want to send the value of the tag that was clicked to the input value.
Example:
<img id="imgs" src="img_01">
<img id="imgs" src="img_02">
<img id="imgs" src="img_03">
<img id="imgs" src="img_04">
<input type="text" nome="selecionar_img" value="">
Suppose I click on the img of src 3, I need my input this way.
<input type="text" nome="selecionar_img" value="img_03">
And if I click on another tag img the value field delete the previous value and put the new value of the tag that was clicked.
<input type="text" nome="selecionar_img" value="img_03"> // Valor anterior
<input type="text" nome="selecionar_img" value="img_01"> // Novo Valor passado
Thanks to anyone who can help me, I have no experience with Js but I need to do these events. obg ^ - ^