First, don't remove the profile info from the page when you first load
the form. Just fade it out. Then, say you had the profile info in a
div with ID 'profile' and the form in a div with ID 'edit_profile':

$('#cancel').click(function()
{
        $('#edit_profile').fadeOut().remove();
        $('#profile').fadeIn();
});

On Thu, Jun 25, 2009 at 9:44 AM, Dave Maharaj ::
WidePixels.com<d...@widepixels.com> wrote:
> I load form into a div replaceing the content thats there with a form that
> will be updating the content .
>
> So click here to edit your profile -> profile info fades out -> form loads
> inplace...all good and simple
>
> Now "cancel".... how can if a user clicks "cancel " remove the form and
> replace it with the original content that was there?
>
> I have an ajax submit working fine...but if the user decides to cancel how
> would i return the original i n fo that was there?
>
> Dave

Reply via email to