How do i switch one button off and another on, onsubmit. Just like when someone sends a friend request to another on facebook
. When the user click on send friend request, the button then changes to friend request sent. here's my html. how do i do that with jquery
or ajax
<tr>
<td bgcolor="#eaeaea"><div align="center" id="send_msg">
<input type="submit" name="button3" id="button3" value="Send Message" />
</div></td>
<td bgcolor="#eaeaea"><div id="msg_sent">
<input type="submit" name="button2" id="button2" value="Message Sent" />
</div></td>
</tr>