MCPcopy Create free account
hub / github.com/jquery-validation/jquery-validation / check

Function check

test/test.js:2020–2038  ·  view source on GitHub ↗
( value )

Source from the content-addressed store, hash-verified

2018 }
2019 } ),
2020 check = function( value ) {
2021
2022 // Fill the first element
2023 element.val( "something" );
2024
2025 // Tab to the next field
2026 element.blur();
2027 nextE.trigger( event );
2028 nextE.focus();
2029
2030 // Tab back to element
2031 nextE.blur();
2032 element.trigger( event );
2033 element.focus();
2034
2035 // Change the content
2036 element.val( value );
2037 element.trigger( "keyup" );
2038 },
2039 eq = function( expected, msg ) {
2040 assert.equal( validator.numberOfInvalids(), expected, "There is only one invalid element." );
2041 assert.equal( validator.invalidElements()[ 0 ], element[ 0 ], msg );

Callers 1

test.jsFile · 0.85

Calls 1

doneFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…