Skip to content

Instantly share code, notes, and snippets.

@co-dh co-dh/angular_chosen
Created Jul 18, 2012

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

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
You can’t perform that action at this time.