I have this small form here:
<form action="prekiu-uzsakymas" method="get">
<input type="text" name="ticket" value="8888">
<input type="submit" value="Panaudoti kuponą">
</form>
What I want to do is, when I click submit, the form should be hidden and only the input should appear:
<input type="text" name="ticket" value="8888">
How can I achieve this with javascript ?