waiting until two values have changed in jquery
<p>I have two form fields and would like to post those values using jquery only when both have a value. I have tried this but there must be a better way. I think this way could lead to errors</p>

<pre><code>$('#RFID').change(function(e){          

    if($(this).val() != '' &amp;&amp; $('#STATION_ID').val() != ''){                

    }
});
</code></pre>
