title: jquery- how to detect element value when onclick?
body: <p>how do i bring the tr value into .click event?
  i want to be able to pass the tr id into updatedb.php as well- for sql updating</p>
  
  <p>enter</p>
  
  <pre><code>&lt;head&gt;
  &lt;script src="jquery-1.3.2.min.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="jquery.jeditable.mini.js" type="text/javascript"&gt;&lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
  
      $(document).ready(function() {
  
  var global= ""
  
  $('.click').click(function() {
      var $this = $(this);
      var $tr = $this.closest('tr');
  
  alert($tr.attr('id'));
  global= $tr.attr('id');
  
  });
  
  
      $('.click').editable('updatedb.php?test=123', { 
          indicator : "&lt;img src='indicator.gif'&gt;",
          tooltip   : "Click to edit...",
          onblur : 'submit',
          style  : "inherit"
  
      });
  
  
      });
  
  &lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body&gt;      
      &lt;tr id=1&gt;
      &lt;td&gt;
          &lt;span class="click" style="display: inline"&gt;Funny click here testing!&lt;/span&gt;
          &lt;br /&gt;
          &lt;/td&gt;    
      &lt;/tr&gt;
      &lt;tr id=2&gt;
          &lt;td&gt;    
          &lt;span class="click" style="display: inline"&gt;Second inline!&lt;/span&gt;
          &lt;/td&gt;
      &lt;tr&gt;    
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>here</p>
  
  <p>Hi, jeditable don't have successor. I finally manage to get the value into global. But now facing another issue. Jeditable doesn't allow me to pass in extra value... </p>
  
  <p>I tried 
  editable('updatedb.php?test=123'
  then echo "START" . $_POST['test'] . "END"</p>
  
  <p>I also tried other way, not working.</p>