Trying to get access to a FlashVar
I'm sure this is fairly simple but i'm still a newb when it comes to jQuery. I'm trying to get access to the flashvar element on my page. The code looks like this:
- <object id="kdp3" class="player" height="348" width="620" type="application/x-shockwave-flash" name="kdp3" data="..." style="visibility: visible;">
- <param name="quality" value="best">
- <param name="wmode" value="opaque">
- <param name="allowfullscreen" value="true">
- <param name="allowscriptaccess" value="always">
- <param name="flashvars" value="...the data i need is here...">
- </object>
I've tried the following alerts to get access to it to no avail:
- alert($("#kdp3 param[@name=flashvars]").val());
alert($("#kdp3 param[@name=flashvars]").attr("value"));
alert($('#kdp3 param[@name=flashvars].val()'));
Any help?