Skip to content

Commit 2f4fedc

Browse files
committed
gw-none-of-the-above-checkbox.js: Fixed an issue with the snippet not working.
1 parent 62b384a commit 2f4fedc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gravity-forms/gw-none-of-the-above-checkbox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ $( '.gw-none-of-the-above' ).each( function() {
2626
var $others = $field.find( 'input' ).not( $last );
2727

2828
// If "None of the Above" choice is checked by default.
29-
if ( $( last ).prop( 'checked' ) ) {
29+
if ( $( $last ).prop( 'checked' ) ) {
3030
var $checkboxes = $field.find( 'input' ).not( $last )
3131
$checkboxes
3232
.prop( 'checked', false )

0 commit comments

Comments
 (0)