Created
July 18, 2012 15:23
-
-
Save co-dh/3136882 to your computer and use it in GitHub Desktop.
angular.js and jquery chosen plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This one is not working. I just want to show the problem.