Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

element.chosen is not a function

See original GitHub issue

My implementation:

The controller…

    angular.module('EXAMPLE').controller('exampleController', [$scope', 'localytics.directives' ] 
                     $scope.colors=['blue', 'red','yellow'];


The view…

<select multiple chosen
                ng-disabled= "true"
                data-placeholder="Selecciona la operacion..."
                ng-options="oper for oper in colors"
                   style="width: 200px;"

But i got this error image

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:21 (2 by maintainers)

github_iconTop GitHub Comments

alilishan-omniphicscommented, Aug 19, 2016

@leocaseiro haha thanks dude apologies for the error. could be i missed it cos i was linked to the discussion from

martsiecommented, Jul 14, 2015

Switching the order fixed it for me. jQuery and chosen must be loaded before Angular.

Read more comments on GitHub >

github_iconTop Results From Across the Web

angularjs - element.chosen is not a function - Stack Overflow
I'm using the chosen-bower install with Angular, but each time I run the app on my server I get the "element.chosen is not...
Read more >
TypeError: $(...).chosen is not a function [#2089973] |
Hi,. After some updates I did, chosen stop working on some pages and this error appear. ... I'm trying to digg what's happing...
Read more >
Chosen: A jQuery Plugin by Harvest to Tame Unwieldy Select ...
Chosen is a jQuery plugin that makes long, unwieldy select boxes much more user-friendly. ... by reading the select element's data-placeholder value.
Read more >
TypeError: map is not a function in JavaScript | bobbyhadz
The "TypeError: map is not a function" occurs when we call the map() method on an object that is not an array. To...
Read more >
Uncaught TypeError | Is Not A Function | Solution - YouTube
Have you encountered an error like:- Uncaught TypeError- Some selector is not a function - jQuery is not a function - owlCarousel is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found