Skip to content

Instantly share code, notes, and snippets.

@co-dh
Created July 18, 2012 15:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save co-dh/3136882 to your computer and use it in GitHub Desktop.
Save co-dh/3136882 to your computer and use it in GitHub Desktop.
angular.js and jquery chosen plugin
<!doctype html>
<html ng-app>
<head>
<script src="/lib/angular-1.0.1.js"></script>
<script type="text/javascript" src="/lib/jquery.js"></script>
<script type="text/javascript" src="/lib/chosen/chosen.jquery.js"></script>
<link rel="stylesheet" href="/lib/chosen/chosen.css">
</head>
<body>
<div>
<select id="sel1" ng-model="country">
<option value='US'>US</option>
<option value='Canada'>Canada</option>
</select>
<hr>
<h1>Hello {{country}}! </h1>
</div>
</body>
<script type="text/javascript">
$("#sel1").chosen()
</script>
</html>
@co-dh
Copy link
Author

co-dh commented Jul 18, 2012

This one is not working. I just want to show the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment