I Want To Store A Value In Jquery Var And Pass It
i have a script you can download it from here: http://www.4shared.com/rar/XoaJijx5/var_pass.html the problem is in the index.html & scripts.js, look at and give me the change i
Solution 1:
All of your code needs to be in $(document).ready function.. Like this:
$(document).ready(function() {
    //You can alternatively pass an object:
    $('#player').youTubeEmbed({
        video: 'http://www.youtube.com/watch?v=uyeJXKfAcpc',
        width: 640,
        // Height is calculated automatically
        progressBar: true // Hide the progress bar
    });
    var yid = $("input[name='youtube-id']").val();
    $('#player').youTubeEmbed({
        video: 'http://www.youtube.com/watch?v=' + yid,
        width: 640,
        // Height is calculated automatically
        progressBar: true // Hide the progress bar
    });
}); // THE END OF YOUR $(document).ready function
Post a Comment for "I Want To Store A Value In Jquery Var And Pass It"