$('#map_name').val(''); $('#map_desc').val(''); $('#map_permission').val('commons'); $('#map_topicsToMap').val('0'); var tempForm = $('#new_map').html(); $('#new_map').html("Success! Do you want to
' + "'>Go to your new map?
or
Stay on the Console?"); function closeIt() { $('#new_map').fadeOut('fast', function(){ $('#new_map').html(tempForm); }); }