Guys I have this function from a wordpress plugin:
jQuery( '#widget-twitter-__i__-username' ).on( 'change', function() {
jQuery('#widget-twitter-__i__-list' ).val(0);
});
jQuery( '#widget-twitter-__i__-list' ).on( 'change', function() {
jQuery('#widget-twitter-__i__-username' ).val(0);
});
The error I am getting is:
TypeError: jQuery(...).on is not a function
When I click that error on the error console, I get to the above code.
And I was wondering what would be the way to address this issue.
jQuery(...).on
I think jQuery is loaded, but a old version else it has to sayjQuery
is undefied – Arun P Johny Sep 23 '13 at 12:06