All Downloads are FREE. Search and download functionalities are using the official Maven repository.

template.js.base.form.js Maven / Gradle / Ivy

There is a newer version: 5.0.5
Show newest version
( function( factory ) {
	if ( typeof define === "function" && define.amd ) {

		// AMD. Register as an anonymous module.
		define( [ "jquery", "./version" ], factory );
	} else {

		// Browser globals
		factory( jQuery );
	}
} ( function( $ ) {

// Support: IE8 Only
// IE8 does not support the form attribute and when it is supplied. It overwrites the form prop
// with a string, so we need to find the proper form.
return $.fn.form = function() {
	return typeof this[ 0 ].form === "string" ? this.closest( "form" ) : $( this[ 0 ].form );
};

} ) );




© 2015 - 2024 Weber Informatics LLC | Privacy Policy