Re: [jQuery] Get value from hidden input and use it in string

2009-11-27 Thread brian
Give the input element an ID and use that in the selector: > $(this).setFile('http://domain.com/asset/get/' + $('#music_id').attr('id')).play(); On Fri, Nov 27, 2009 at 11:48 AM, shapper wrote: > Hello, > > I am using JPlayer to play a sound on a page: > http://www.happyworm.com/jquery/jplayer

[jQuery] Get value from hidden input and use it in string

2009-11-27 Thread shapper
Hello, I am using JPlayer to play a sound on a page: http://www.happyworm.com/jquery/jplayer/0.2.5/demo-04.htm $(document).ready(function(){ $("#jquery_jplayer").jPlayer({ ready: function () { $("#trackname").text($("#track-01").text()); $(this).setFile('http://www.m