ncr (owner)

Revisions

gist: 110972 Download_button fork
public
Public Clone URL: git://gist.github.com/110972.git
Embed All Files: show embed
jquery plugin template #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<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>