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

I create a new method,but I don't kown how to use the github #57

Closed
longtsing opened this issue Apr 18, 2012 · 0 comments
Closed

I create a new method,but I don't kown how to use the github #57

longtsing opened this issue Apr 18, 2012 · 0 comments

Comments

@longtsing
Copy link

  methods.rebuild = function () {
    for (var i = 0, l = lists.length; i < l; i++) {
      var
        listData  = lists[i].data('dropkick'),
        $dk       = listData.$dk,
        $current  = $($dk.find('li').get($("#"+$dk.get(0).id.substr(13)).get(0).selectedIndex))
      ;
      $dk.find('.dk_label').text(listData.label);
      $dk.find('.dk_options_inner').animate({ scrollTop: 0 }, 0);

      _setCurrent($current, $dk);
      _updateFields($current.find("a"), $dk);
    }
  };

if you change the selectedIndex of , you should need a new droplist so you can use the $("select").dropkick("rebuild") Think you.my email:boylong@gmail.com

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

2 participants