My problem is this: I am using jquery to display an error text in: target: '#magerror'
That works fine. But if there are no errors, the page loads in the target. So I am trying to get rid of the target.
Right now I am at
response: 'req.responseText.split("<!--error-->")'
if (response[0] == '') {
,
target: '#magerror'
}
but still no luck. I have been stuck for 2 days now, trying to get rid of the target based on the response