How can stop change event?
<pre><code>var InDate = trim($(".inDate").val());

if (InDate == '') {
  $(".inDate").val(dateDisplayFormat);
}

//Bind date picker
daymarker.bindElement(".inDate",
    { 
        onSelect: function(date) {
            $(".inDate").trigger('change');            
        }, 
        dateFormat:jsDateFormat
    });

$(".inDate").change(function() {
  //some validation functions are called here.
});
</code></pre>

<p>Lets say that i have two rows with indate and outdates.</p>

<p>for example:</p>

<pre><code>Indate       outDate
2011-02-20    2011-02-24 
2011-02-25    2011-02-27
</code></pre>

<p>so when i change the first date using the date picker indate change will be called twice.so because of the it is not possible to give the validation message.Lets say my first date is wrong.and second date is correct.because of that validation message will get hidden.</p>

<p>Is there a way that i can stop the second trigger if the first date is wrong???</p>
