show tab after form submit test fail.

show tab after form submit test fail.

Hey guys, I'm fairly new and not familiar enough with jQuery just yet and hoping you can help.

I'm looking to test my form data for a client_id value and display a jQuery tab that includes the client data if no id is found.

along the lines of this:

function newQuoteSubmit() {
var result = "";
var clientId = document.getElementById("client_id").value;

if ((clientId == "") {
result += " no client id.";
$('#clientDetails').show(); // 
                return false;
}
      else{
                form.submit();
      }
}

What I'm looking of is the function that will display the correct tab for me to fill out the client data.

page looks like this:

<div id="tabs">
<ul>
<li><a href="#clientDetails">client Details</a></li>
<li><a href="#safety_signs">quote Details</a></li>
etc...

</ul>
<div id="enquiry"><!--#include file="new-enquiry.asp"--></div>
<div id="safety_signs"><!--#include file="new-quote.asp"--></div>
etc...


</div>


Probably fairly straightforward for you guys  ;0)


Many thanks for any help,

JB