[jQuery] Toggle Help

[jQuery] Toggle Help

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18828"></HEAD>
<BODY>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN class=472594519-20102009>I am trying
to toggle two different views on the page. I have the users personal info in
<div id="edit_personal">content</></SPAN></FONT></DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN
class=472594519-20102009></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN class=472594519-20102009>So when the
user clicks edit the content gets replaced with a form url:
"/manage/personal/edit",<BR></SPAN></FONT><FONT size=2 face="Trebuchet MS"><SPAN
class=472594519-20102009></SPAN></FONT></DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN class=472594519-20102009>What would
be the best way to do this/ So if they click edit the content gets replaced with
the form, if they hit cancel the form gets replaces with the original
content?</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN
class=472594519-20102009></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN class=472594519-20102009><script
type=
"text/javascript"><BR>$(document).ready(function(){<BR>$("#edit_personal").click(function(){<BR>  $("#edit_personal").toggle().ajax(function(){<BR>   url:
"/manage/personal/edit",<BR>     cache:
false<BR>  });          
<BR> return
false; <BR> });<BR> });<BR></script></SPAN></FONT></DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN
class=472594519-20102009></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN
class=472594519-20102009></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN
class=472594519-20102009>Thanks,</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN
class=472594519-20102009></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN
class=472594519-20102009>Dave</SPAN></FONT></DIV>
<DIV>
<DIV align=left><FONT size=2 face=Arial></FONT></DIV></DIV></BODY></HTML>