UNPKG

apostrophe

Version:

The Apostrophe Content Management System.

18 lines (16 loc) 419 B
// 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 );