Click to See Complete Forum and Search --> : Ajax question


tito
01-11-2008, 07:02 PM
I an doing an ajax request to insert into a <div>
In the <head> I set the <div>

<script>
target: '#mydiv'
</script>

Is there a way to have the ajax change that target also, once a certain condition is met?

I am using the beforeSubmit handler to do a form validation that can be done only with php. If I get errors I display them in the <div> and the form will not submit.

The problem that I am having is that once all errors are gone and the form proceeds to step 2, the next page displays in the <div> too!!!!!