title: JQuery checking multiple inputs and select values
body: <p>looking for some pointers to work with JQuery.</p>
  
  <p>I have three form elements:</p>
  
  <p>select - id: lodge <br/>
  input[text] - id: dates<br/>
  select - id: duration</p>
  
  <p>What I need to do is cause a function to run if any of these either has a change or blur, but also for the script to check that each has a value and to pass all three of those values to the script.</p>
  
  <p>So I need to populate three variables:</p>
  
  <pre><code>var LodgeChoice = $('#lodge').val();
                  var DateParse = $('#dates').datepicker('getDate');
                  var DateChosen = DateParse.getFullYear() + '-' + (DateParse.getMonth() + 1) + '-' + DateParse.getDate();
                  var Duration = $('#durationNights').val();
  </code></pre>
  
  <p>But I cannot be sure what order someone will populate the form variables.</p>