How can I get the X value of an INPUT and generate a URL for IMG using JavaScript?
Example:
- I put the number 505050 on form and gave submit;
Form Code:
<form action="teste" method="GET">
<input name="qtdfor" type="text" class="inputtext" size="10" maxlength="10">
<input type="Submit" name="botaoEnviar" value="Enviar">
</form>
How do I get value 505050 concatenated with .jpg already inside the IMG tag?
IMG TAG:
<img src="https://localhost/sig/_downloadFoto?parametro2=Alunos/**505050**.jpg"alt="Foto perfil" height="42" width="42">