YouTube API, jQuery attr won't swap element attributes (I think) in IE, but works in FF
- by Anthony
JavaScript (jQuery)
function display_youtube(new_url) {
$('#movie_url').removeAttr('value');
$('#embed_url').removeAttr('src');
$(document).ready(function() {
$('#movie_url').attr('value', new_url);
$('#embed_url').attr('src', new_url);
$('#shade').css('display', 'block');
…