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

TypeError: this.selected_item.bind is not a function #2797

Closed
nekromoff opened this issue Mar 19, 2017 · 4 comments
Closed

TypeError: this.selected_item.bind is not a function #2797

nekromoff opened this issue Mar 19, 2017 · 4 comments

Comments

@nekromoff
Copy link

 <label for="organization_id" class="control-label">Organization id</label>
        <select class="form-control" id="organization_id" name="organization_id"><option value="1">ratione</option><option value="2">ut</option><option value="3">iste</option><option value="4">nihil</option><option value="5">nulla</option><option value="6">maiores</option><option value="7">unde</option><option value="8">impedit</option><option value="9">et</option><option value="10">sed</option><option value="11">minus</option><option value="12">vitae</option><option value="13">quia</option><option value="14">aut</option><option value="15">aut</option><option value="16">itaque</option><option value="17">pariatur</option><option value="18">debitis</option><option value="19">quo</option><option value="20">cupiditate</option></select>    

$('#organization_id').chosen();

@Isg90
Copy link

Isg90 commented Mar 24, 2017

you use jquery older than 3.0 version.
As of jQuery 3.0, .bind() has been deprecated. It was superseded by the .on() method.
http://api.jquery.com/bind/
Just replace all bind (to on) and unbind (to off) methods from chosen.jquery.js

@nekromoff
Copy link
Author

nekromoff commented Mar 25, 2017 via email

@nekromoff
Copy link
Author

nekromoff commented Mar 25, 2017

Also, I checked your latest 1.7.0. release, but it does not a contain any actual JS file to use.

@stof
Copy link
Collaborator

stof commented Apr 28, 2017

chosen is currently not compatible with jQuery 3 without using the jQuery Migrate plugin. See #2729.

I'm closing this issue as duplicate

@stof stof closed this as completed Apr 28, 2017
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