0👍
You are passing in findNextFD(node)
there is no variable named $node
inside that function. Try it without the $
in front of node
, and add some logic to make sure node !== null
at the beginning of the function for debugging.
If you are trying to use the jQuery function $
make sure it is imported properly and that the $
is defined.
Some examples:
// Select all "p" elements and write "Hello"
$( "p" ).text( "Hello" );
// Change the color of all "p" elements to red
$( "p" ).css( "color", "red" );
// Hide all elements with the ".shy" class
$( ".shy" ).hide();
// Show the element with the "#nav" id
$( "#nav" ).show();
Source:stackexchange.com