Liam W
in memoriam 1998-2020
I'm stumped on this, can someone here help me out?
I've created a javascript file and have registered something, as per the file below...
However, the $form variable just contains 0 and as such an error is thrown when I try to bind an event handler to it (or whatever it's called).
Any ideas?
I've created a javascript file and have registered something, as per the file below...
Code:
/**
* @param {jQuery} $
* jQuery Object
*/
!function($, window, document, _undefined) {
XenForo.VPPCodes = {
ShowCode : function($form) {
console.log($form);
$form.bind('AutoValidationComplete', function(e) {
});
}
};
XenForo.register('form.VPPForm', XenForo.VPPCodes.ShowCode);
}(jQuery, this, document);
However, the $form variable just contains 0 and as such an error is thrown when I try to bind an event handler to it (or whatever it's called).
Any ideas?