Skip to content

Instantly share code, notes, and snippets.

@ncr
Created May 13, 2009 11:08
Show Gist options
  • Save ncr/110972 to your computer and use it in GitHub Desktop.
Save ncr/110972 to your computer and use it in GitHub Desktop.
<html>
<head>
<script src="/javascripts/jquery.js" type="text/javascript"></script>
</head>
<body>
<a href="#" id="first">First</a>
<a href="#" id="second">Second</a>
<a href="#" id="third">Third</a>
<script type="text/javascript">
(function($){
$.fn.exclusive = function(options) {
var defaults = {}
var options = $.extend({}, defaults, $.fn.exclusive.defaults, options)
return this.each(function() {
})
}
})(jQuery);
$("#first, #second, #third").exclusive("selected")
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment