gform_spinner_target_elem

gform_spinner_target_elem

DescriptionUsageParametersExamples1. Specify a Custom Target for AJAX SpinnerSource CodeSince

Description
Use this filter to modify the element after which the AJAX spinner will be inserted for AJAX-enabled forms. By default, it will be the next button (for multi-page forms) or submit button.
Usage
123gform.addFilter( 'gform_spinner_target_elem', function( $targetElem, formId ) {    return $( '#my-custom-elem' );} );

Parameters

$targetElem object
jQuery object containing all of the elements after which the AJAX spinner will be inserted.

formId integer
ID of the current form.

Examples
1. Specify a Custom Target for AJAX Spinner
123gform.addFilter( 'gform_spinner_target_elem', function( $targetElem, formId ) {    return $( '#my-custom-footer-elem' );} );
Source Code
This filter is located in gformInitSpinner() in js/gravityforms.js
Since
This filter was added in Gravity Forms 2.0-beta-2.2.

發表回覆

您的電子郵箱地址不會被公開。 必填項已用 * 標註