JamieLottering/DropKick — Issue #47: Submitting form without button.
Author: godwheel
Created: 2012-03-10 05:04:16+00:00
State: open

I created a form using the examples. The dropdown works great as advertised.

I wanted to submit the form as soon as someone changed their selection from the dropdown and it did not work.

My code:

In the head (aside from jquery, dropkick css, and dropkick js).

$(function () {
$('.change').dropkick({
change: function (value, label) {
('.example_form').submit();
}
});
});

In the HTML

Please select a color

Blue

Orange

Brown