title: jquery, how to trigger function from a button click?
body: <p>i have this example:</p>
  
  <pre><code>&lt;script&gt;
  $('.myvideos').live('click', function() {
      $('#myvideos').trigger('click');
      var ide = '123';
      function ajax_request() {
          $('#placeholder').load("test.php?id=ide");
      }
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>how can i  trigger the <code>ajax_request</code> function after <code>$('#myvideos').trigger('click');</code> happens and pass the <code>ide</code> var to load link?</p>
  
  <p>any ideas?
  thanks </p>