How to process posted data using ajax inside a tab?
hi, iam a new jquery user. I loaded a php file inside a tab using an example given in jquery website, say example.html.
I did not alter the javscript part. The classes.php loads and it is actually a form and its action is now set to itself. So when this form is posted, it loads classes.php instead of example.html. Please say how to correct it?
<script type="text/javascript">
$(function() {
$("#tabs").tabs({
ajaxOptions: {
error: function(xhr, status, index, anchor) {
$(anchor.hash).html("Couldn't load this tab. We'll try to fix this as soon as possible. If this wouldn't be a demo.");
}
}
});
});
</script>
<li>
<a href="class.php">Classes</a>
</li>