Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. $("select").change(function () {
  2.  
  3. $(".filter").each(function () {
  4.  
  5. $(function () { });
  6.  
  7. // IIFE - Immediately Invoked Function Expression
  8.  
  9. (function(yourcode) {
  10.  
  11. // The global jQuery object is passed as a parameter
  12. yourcode(window.jQuery, window, document);
  13.  
  14. }(function($, window, document) {
  15.  
  16. // The $ is now locally scoped
  17.  
  18. // Listen for the jQuery ready event on the document
  19. $(function() {
  20.  
  21. // The DOM is ready!
  22.  
  23. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement