Skip to content

Instantly share code, notes, and snippets.

@rainerborene
Created August 14, 2009 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rainerborene/168089 to your computer and use it in GitHub Desktop.
Save rainerborene/168089 to your computer and use it in GitHub Desktop.
/* 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