Jquery Validadion Plugin - Can someone help with a custom Validation!
<p>Hi Guys i need some help with Jquery Validadion Plugin</p>

<p>I have an input box that gives the delay time form the calculation of two other input boxes.
if the delay time is more than 00:15 min i have to select a delay code from another select box.
eg:</p>

<pre><code>    &lt;script&gt;
function tdiff(t1,t2) {
    var t1 = hour2mins(t1);  var t2=hour2mins(t2);
    var ret = mins2hour(parseInt(t2-t1));
    if(t2&lt;t1) {ret=mins2hour(parseInt(parseInt(t2+1440)-t1));}
    return ret;
}

$(function() {
$("input.[rel=time]").keyup(function (b){ $("#delaytime").val(tdiff($("#arrival").val(),$("#scharrival").val())); }); 
});

$().ready(function() {
    $.validator.addMethod('delayCode', function(value, element) {
    // ???!!!
    }, 'Please enter your a Delay Code'); 


    // validate signup form on keyup and submit
    $("#timetable").validate({
        rules: {
            arrival: { required: true},
            scharrival: { required: true}
        }
    });
});
&lt;/script&gt;
&lt;form id="timetable"&gt;
&lt;table width="100%"&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;input type="text" name="arrival" id="arrival" rel="time"&gt;&lt;/td&gt;
    &lt;td&gt;&lt;input type="text" name="scharrival" id="scharrival" rel="time"&gt;&lt;/td&gt;
    &lt;td&gt;&lt;input type="text" name="delaytime" id="delaytime"&gt;&lt;/td&gt;
    &lt;td&gt;
      &lt;select name="delaycode" id="delaycode" class="required"&gt;
      &lt;option value=""&gt;Select&lt;/option&gt;
        &lt;option value="01"&gt;01&lt;/option&gt;
        &lt;option value="02"&gt;02&lt;/option&gt;
        &lt;option value="03"&gt;03&lt;/option&gt;
        &lt;option value="04"&gt;04&lt;/option&gt;
    &lt;/select&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;
&lt;/form&gt;
</code></pre>

<p>Can someone guide me..?</p>
