Re: [jQuery] IF and NULL. Please, could someone help me out?

2009-12-03 Thread brian
Does this work? $("#JPlayer").jPlayer({ ready: function() { var cookie = $.cookies.get("AlliedSkills.Player"); $(this).setFile($('#MusicPath').attr("value")) if (cookie == "Play") { $(t

[jQuery] IF and NULL. Please, could someone help me out?

2009-12-02 Thread shapper
Hello, I have the following: $("#JPlayer").jPlayer({ ready: function() { $(this).setFile($('#MusicPath').attr("value")).play(); }, swfPath: $('#JPlayerPath').attr("value") }); I would like the play the file: $(this).setFile($('#MusicPath').attr("value")).play(); Only if (