apostrophe
Version:
Apostrophe is a user-friendly content management system. This core module of Apostrophe provides rich content editing and essential facilities to integrate Apostrophe into your Express project. Apostrophe also includes simple facilities for storing your r
18 lines (16 loc) • 419 B
JavaScript
// find-by-name: a jQuery plugin that makes it convenient to find an
// element by its name attribute, especially when the name is
// stored in a variable.
//
// Copyright 2013 P'unk Avenue LLC
//
// Please see:
//
// https://github.com/punkave/jquery-find-by-name
//
// For complete documentation.
(function( $ ){
$.fn.findByName = function(name) {
return this.find('[name="' + name + '"]');
};
})( jQuery );