I'm having an issue where I'm trying to call a function on a selector, and use jQuery to edit/add classes to elements within that selector.
Below is my code:
(function($) {
$(document).on('click', '.one a.button', function(){
$('.two').loadQuestions();
});
})(jQuery);
function loadQuestions( $ ) {
$(this).addClass('active');
$(this).children().addClass('transition-in');
$(this).find('.tilt').delay(100).textillate({
in: { effect: 'fadeInLeft' }
});
It keeps giving me this error:
undefined is not a function - in regards to:
$('.two').loadQuestions();