php - Change att of the video to its corresponding item when you press the enter key


I have an application for podcasts and accurate when press the "enter" just change the attribute of the corresponding item of the video, however can not reload the page, just change the video. Anyone know how to do?


$.getJSON("*%20from%20xml%20where%20url%3D''%20AND%20itemPath%3D%22%2F%2Fchannel%22&format=json&diagnostics=true&callback=?", function (data) {

    // Load Titles patch Json
    var titles = (item) {
        return item.title;

    var urls = (item) {
        return item.origLink;

    $(".container-list-podcast ul").append('<li>' + titles.join('</li><li>'));
    $(".container-list-podcast ul li").each(function (key, value) {
        var text = $(this).text();
        $(this).html('<a href="' + urls[key] + '">' + text + '</a>');
    $(".container-list-podcast ul li a").click(function () {
        var href = $(this).attr('href');
        $("#myvideo").attr("src", href).get(0).play();
        return false;
    // Load Navigation Only Key
    a = $('.nav_holder li').keynav(function () {
        return window.keyNavigationDisabled;


People are also looking for solutions to the problem: php - Posting drop down menu value to mysql cell


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.