title: jQuery/Ajax POST with ContentEditable spans not working
body: <p>I hate JavaScript/jQuery.... and, most days it hates me.  Just when I think we're starting to build a rapport, I fall down a hole I can't find my way out of.</p>
  
  <p>I'm trying to have ContentEditable spans POST changes to MySQL onBlur.</p>
  
  <p><strong>Here's my HTML/PHP:</strong></p>
  
  <pre><code>&lt;h4&gt;&lt;strong&gt;Number of Employees: &lt;/strong&gt;&lt;span contenteditable="true" onBlur="saveToDatabase(this,'NumberOfEmployees','&lt;?php echo $row["mysqlid"]; ?&gt;')"&gt;&lt;?php echo number_format($row['numberofemployees']); ?&gt;&lt;/span&gt;&lt;/h4&gt;
  </code></pre>
  
  <p><strong>Here's my jQuery:</strong></p>
  
  <pre><code>function saveToDatabase(editableObj,column,id) {
              var dataString = 'column='+column+'&amp;editval='+editableObj.innerHTML+'&amp;id='+id;
              $.ajax({
                  url: "_updatelead.php",
                  type: "POST",
                  data: { dataString },
                  } 
              }
             });
  </code></pre>
  
  <p>I can't find my error, but every attempt I make throws the same error:</p>
  
  <blockquote>
    <p>Uncaught ReferenceError: saveToDatabase is not defined
        at HTMLSpanElement.onblur (viewleaddetail.php?id=5658:225)</p>
  </blockquote>
  
  <p>Any ideas how I can resolve this?  It seems to be  a simple answer, but I can't get it right.  Thanks!</p>