title: e.nodeName is undefined Jquery
body: <p>I've racked my brains and went through it, looking at examples and don't understand why firebug is throwing "e.nodeName is undefined" error..<br><br></p>
  
  <p>It's probably something stupid little bracket out of place or something that needs a second pair of eyes to see..<br><br>
  I'm just making a simple little ajax post for some inputs, but this is my first post ever, and I'm about close to pulling some hair off my head due to how many errors i've run into so far..<br>http://jsfiddle.net/JohnnyDoe/aQYra/<br><br><em>My script</em><br></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function () {
          $('.hexen').after('&lt;div class="ui-state-default ui-corner-all ui-icon-disk ui-icon saveButton" onClick="save();" title="Save" style="float:left; height:20px;" onclick="save()"&gt;&lt;/div&gt;&lt;br /&gt;') // ui icon
      .keypress(function () {
          $(this).next('.saveButton').show(); //appends ui icon
      });
  
          $('.saveButton').hide().click(function () {
              $(this).hide(); // removes ui icon on click
          });
  
          $('.ui-state-default').hover(
  
      function () {
          $(this).addClass('ui-state-hover');
      }, function () {
          $(this).removeClass('ui-state-hover');
      } //ui icon hover
      );
      });
  
      function save(value) {
          $('.hexen').each(function () {
              var id = null;
          });
          if ($(this).val() !== '') {
              id = $(this).attr('id');
          }
      }
      $.ajax({
          type: "POST",
          url: "Default.aspx",
          data: "{Id: " + $(".hexen").attr('id') + ", Value: " + $(".hexen").val() + "}",
          dataType: "json",
          contentType: "application/json; charset=utf-8",
          success: function (data) {
              console.log(data);
          }
      });
  &lt;/script&gt; 
  </code></pre>
  
  <p><br><br><br></p>
  
  <p><em>My HTML</em><br><br></p>
  
  <pre><code>&lt;div id="unvolitive"&gt;
  &lt;input type="text" class="hexen" id="Text1"/&gt;
  &lt;input type="text" class="hexen" id="Text2"/&gt;
  &lt;input type="text" class="hexen" id="Text3"/&gt;
  &lt;input type="text" class="hexen" id="Text4"/&gt;
  &lt;input type="text" class="hexen" id="Text5"/&gt;
  &lt;/div&gt; 
  </code></pre>
  
  <p><br><br><br><br><br><br>
  <em>Thanks in advance</em></p>