jquery toggle effect

JQuery Toggle Drop Down Effect

jQuery is a pretty amazing JavaScript library.  It allows you to do things with JavaScript that were, back in the day, pretty tough to pull off.  Today I want to show you how to do a simple toggle drop down effect using jQuery.  The first thing …

Read More

JavaScript Regular Expressions

How to use JavaScript Regular Expressions

Video of regular expressions with phone numbers: This tutorial is going to look at a JavaScript regular expression example using zip codes and break down all the pieces.  The problem I’ve found with regular expressions is they aren’t something you can just look at and …

Read More

console log vs console dir

JavaScript console.log vs console.dir

So what is the difference between console.log and console.dir in JavaScript?  Well, let’s take a look!  If we were to take this code: <!DOCTYPE html> <html> <head> <meta charset=”utf-8″> <title>console.log vs console.dir</title> </head> <body> <script> console.log(“Why, hello!”); console.dir(“Why, hello!”); </script> </body> </html> then put it …

Read More