/* Vimeo Videos Extension (jQuery version) */ | |
(function($) { | |
$(document).ready(function(){ | |
$(".field-vimeo_video").each(function(index) { | |
var span = $(this).find("span"); | |
var a = $(this).find("a.change"); | |
var input = $(this).find("input.hidden"); | |
a.click(function() { | |
input.css("display", "block"); | |
input.val(''); | |
span.css("display", "none"); | |
}); | |
}); | |
}); | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment