title: How to pass DOM element to a API function?
body: <p>While trying to integrate Yahoo Media Player into my own website, I want to allow users to click on a link to add the clicked track to the playlist. YMP API has got a function for doing that (<a href="http://mediaplayer.yahoo.com/api/#method_addTracks" rel="nofollow noreferrer">http://mediaplayer.yahoo.com/api/#method_addTracks</a>). It takes a DOM element. Now how should I pass the dom element. My code looks like this right now:
  ...</p>
  
  <pre><code>&lt;li id="track1"&gt;
  &lt;a href="location of track" style="display:none"&gt;track1&lt;/a&gt;
  &lt;a href="#" onclick="YAHOO.MediaPlayer.addTracks(WHAT SHOULD I PUT HERE?, null, true);"&gt;Add this to the playlist&lt;/a&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>if anyone has worked with YMP or has any idea about this please help.</p>