function showVideo () { var iframe = $("#showVideo"); iframe.attr("src", iframe.data("src")); }