At this point in time I only know enough about JS to get by. I recently started to use the dropkick.js plugin, but i'm having trouble incorporating submit as a change function.

Note: The select input i'm using the script for previously was using onchange submit.

I'm not sure what the proper syntax would be in the function:

Code:
 $('.black').dropkick({
	 change: function (value) {
          submit(value);
        }
      });
Any help would be greatly appreciated.

SOLVED:

Code:
 $('.black').dropkick({
	 change: function () {
          $('form#form-id-name').submit();
        }
      });