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

Problem with array of selects #59

Closed
kashifmhd opened this issue Apr 19, 2012 · 2 comments
Closed

Problem with array of selects #59

kashifmhd opened this issue Apr 19, 2012 · 2 comments

Comments

@kashifmhd
Copy link

Hi,

I am not sure if anyone else has faced this problem before but I am stuck in this issue with dropkick implementation.

The problem I am facing is I am using array of selects with name like
test_select[]

but when I apply dropkick on these select boxes the change option does not work and the error "data is undefined" is generated at line 263 containing code

$select = data.$select;

can anyone help me on how can I solve this issue

@trikanna
Copy link

trikanna commented Sep 6, 2012

Any luck with this? Seems I've the same problem:

questionnaire[questions-attributes][references-129][data]

Regards

@captbaritone
Copy link

The problem is that Dropkick uses the name of the input to generate it's div's unique id attribute. Obviously, [] is not valid in an id. I took a look at the code, and one work-around is to give your <select> element unique id attribute. It dropkick see's an id on the <select> it will use that instead.

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

4 participants