title: How to have multiple jQuery(' ').keyup on one page
body: <p>I have a form with three text boxes. I want to have a key event on each of them regardless which one they enter in first. Here is my code below:</p>
  
  <pre><code>function showQuoteBox() {
  var overlay = '&lt;div id="overlay"&gt;&lt;/div&gt;';
  var quoteBox = '&lt;form id="quoteForm" action="#"&gt;&lt;h1&gt;Get a quote from &lt;INSTALLERS NAME&gt;&lt;/h1&gt;&lt;fieldset id="user-details"&gt;&lt;label for="inName"&gt;Name:&lt;/label&gt;&lt;input type="text" id="inName" name="name" value="" /&gt;&lt;label for="email"&gt;Email:&lt;/label&gt;&lt;input type="email" id="inEmail" name="email" value=""  /&gt;&lt;label for="phone"&gt;Phone:&lt;/label&gt;&lt;input type="text" id="inPhone" name"phone" value=""  /&gt;&lt;input type="submit" value="Get quote!" name="submit" class="submit" /&gt;&lt;/fieldset&gt;&lt;div id="sent-details"&gt;&lt;span id="nameText"&gt;&lt;span id="emailText"&gt;&lt;span id="phoneText"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/form&gt;'
  jQuery(overlay).appendTo('body');
  jQuery(quoteBox).appendTo('body');
  jQuery(document).ready(function() {
      jQuery('#inName').keyup(function(){
          jQuery('#nameText').html(jQuery(this).val());
      });
      jQuery('#inEmail').keyup(function(){
          jQuery('#emailText').html(jQuery(this).val());
      });
      jQuery('#inPhone').keyup(function(){
          jQuery('#phoneText').html(jQuery(this).val());
      });
  });
  }
  
  window.onkeyup = function (event) {
     if (event.keyCode == 27) {
        jQuery('#overlay').remove();
        jQuery('#quoteForm').remove();
     }
  }
  </code></pre>
  
  <p>Above is my entire function that is called when a button is clicked. It shows the quoteBox with three inputs. Each input box will allow me to enter text but it will only update the span area for the first one that has been entered. All others will not update if any other text box has a value in.</p>
  
  <p>If I choose to enter an email first it will show in the span, but then when I enter a value in any other text boxes, it won't listen.</p>