jQuery Basics Tutorial

No comments

jQuery is an upcoming/hot thing right now when it comes to web development. To me jQuery is slowly taking over flash. There are lots of things I can do in jQuery that I would have programmed in flash for. Before you kill the messenger there are things out there that flash can do that jQuery can’t. So let me post the source code for the tutorial and below that you can watch in video as I explain.


  
      jQuery Basics Tutorial
        http://jquery-1.4.2.min.js
        
          $(document).ready(function() {
              $('#employees tbody tr:odd').addClass('alternaterow');
              $('#employees tbody tr:odd').removeClass('alternaterow');

              $('#hideButton').click(function() {
                  $('#employees').hide();
              });

              $('#toggleButton').click(function() {
                  $('#employees').toggle();
              })
          });
        
        
          .alternaterow
          {
              background-color: #ccc;
          }
        
    
    
        
        
        
John Smith Developer
Greg Smith Owner
Michelle Smith Web Developer
Scott Smith IT Administrator
Michelle Smith Web Developer

[embedyt] http://www.youtube.com/watch?v=2CuTHpeeicg%5B/embedyt%5D