In a plugin I use there is the code below:
;(function ( $, window, document, undefined ) {
$.fn.wc_variation_form = function() {
var $form = this;
$form.on( 'change', '.variations input:radio', function() {
//code which I want to trigger from elsewhere
});
});
From my own code, I need to trigger the code located where //code which I want to trigger from elsewhere is. I can run change() for that, but I don't understand what exactly is $form in the code above. Is it a function? If so how can I run change() on these radio buttons from my own code?