Есть код формы
<div id="form">
<form id="paypal" name="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="iframe name">
<input type="hidden" name="charset" value="utf-8">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="item_number" value="funds01">
<input type="hidden" name="item_name" value="Deposit">
<input type="hidden" name="quantity" value="1">
<input type="hidden" name="custom" value="admin">
<input type="hidden" name="receiver_email" value="[email protected]">
<input type="hidden" name="business" value="[email protected]">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="no_note" value="1">
<input type="text" class="form-control" name="amount">
<button type="submit">Go to payment</button>
</form>
</div>
<div id="result">
<iframe name="iframe name"></iframe>
</div>
Как сделать так, чтобы после нажатия кнопки отправки формы, блок id form скрылся, а блок id result появился?