Hi there - I am new to both javascript and jquery. Headaches all round :-)

The following code works fine - except that when I post to auftragEng.php - I want to show the results in a new window in the centre of the screen (similar to a modal), the print dialog should appear, then, after the user has printed, the window should close and the form should reset itself.

<script type="text/javascript">
$(document).ready(function() {
// validate signup form on keyup and submit
$("#jobForm").validate({
rules: {
q: "required",
q2: "required",
count: "required",
date: "required",

},
messages: {
q: " X",
q2: " X",
count: " X",
date: " X",
}
});
$.validator.setDefaults({
submitHandler: function()
{
form.submit();
},
});
});
</script>

Here is my form -
<form id="jobForm" name="jobForm" method="post" action="jobEng.php">

I tried various things in the form.submit(); part - but mostly they open up a new tab (not wanted)

Anyone have a suggestion as to how I can accomplish this -

Many thanks in advance,

Glorifindal