title: Changing target of an embed vlc video
body: <p>I'm trying to change the target/source of a vlc video based on the user's selection. This is what I have so far:</p>
  
  <pre><code>$('select').change(function() {
              var router = $(this).val();
              alert("The port number is "+router);
  
              var link = "http://xxx:"+router+"/videostream.cgi?user=admin&amp;pwd=cam1&amp;t=";
              alert("The stored link is: "+link);
  
              alert("The current target is: "+$("#vlc").attr("target"));
  
              $("#vlc").attr("target",link);
  
              alert("The new target is: "+$("#vlc").attr("target",link));
  
          });
  </code></pre>
  
  <p>The selection:</p>
  
  <pre><code>&lt;select name="cameras" id="cameras"&gt;
      &lt;option value="1101"&gt;Cam 1&lt;/option&gt;
      &lt;option value="1102"&gt;Cam 2&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>The vlc object:</p>
  
  <pre><code>&lt;embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2"  width="500"  height="500" id="vlc" loop="yes" autoplay="yes" target="http://xxx:1101/videostream.cgi?user=admin&amp;pwd=cam1&amp;t="&gt;&lt;/embed&gt;
  </code></pre>
  
  <p>xxx refers to the user's IP. The alerts are for my own testing purposes. The first three go off as they should, but the last returns [object Object]. I've been able to change other attributes of the vlc object, like the width, so it's something with the target attribute I'm missing</p>