edit an element value with condition
<p>I have this code :</p>

<pre><code>&lt;script type="text/javascript"&gt;
    $(document).ready(function() {
        $('.trackInputHours').change(function() {
            $(this).closest('.trackOn').nextAll('.trackOn').find('.trackInputHours').val($(this).val());
        });             
    });
&lt;/script&gt;
</code></pre>

<p>and I'd like to change the value (with <code>val($(this).val())</code>) only if the value for that element is <code>??</code> or less than the new value. </p>

<p>Is it possible with a sort of condition into the val() ? Or which strategy is better?</p>
