Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change() event call #69

Closed
pss4281 opened this issue Jul 11, 2012 · 1 comment
Closed

change() event call #69

pss4281 opened this issue Jul 11, 2012 · 1 comment

Comments

@pss4281
Copy link

pss4281 commented Jul 11, 2012

Hi,
I found that your plugin doesn't fires a jquery change() event on the <select> being styled by it, can you please fix it?
it's about adding $select.change(); to _updateFields(option, $dk, reset) function. Thanks

@conis
Copy link

conis commented Aug 25, 2012

methods.change = function(value){
    var
        $select   = $(this),
        list      = $select.data('dropkick'),
        $dk             = list.$dk,
        index       = $select.find('>option[value="' + value + '"]').index(),
        $current = $dk.find("li:eq(" + index + ")");

    _setCurrent($current, $dk);
    _updateFields($current, $dk, true);
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants