Some Jquery basics to start with...

Jun 21, 2010
Some Jquery basics to start with...

Hi JQuery is a lightweight JavaScript framework that has a lot of attention lately so I decided to post couple of basic Jquery functions that I found here and there to help myself and anyone reading this.

jQuery cheatsheets for Api 1.4

First of all I think Its best to keep one one your desktop and one in your email. Who knows when you may need to look at this awesome reference.

jQuery $(document).ready shorthand

This is a great tip! Instead of doing this

You can also do this, both are the same!

Open External Links in New Window

Target attribute is not valid in STRICT W3C standard. Bit of jQuery code to dynamically create the attribute to avoid validation error.

Make the entire LI clickable

This trick is very useful when you're using UL list to make a menu. What it does is, when you click on the LI area (outside of the link), it will search for the url in the anchor tag and execute the link:

And here is the ul structure:

Disable right click

Some of us might want to disable right click, or want to create our own context menu for the website, this is how we can detect right click:

Columns of equal height with jQuery

I think this script is quite useful. I haven't have a chance to use it yet. It's more on design. If you want columns have the same height, this function will answer your request. Inspired by CSSNewbie

  • facebook twitter tumblr del.icio.us digg google yahoo stumbleupon myspace linkedin reddit.com technorati.com

services

We offer everything from web design to print design,illustration and photography...
  • Website design, CMS Integration and SEO...
  • Corporate identity design; including logos, business cards...
  • Print & Packaging; including brochures and flyers...
  • Custom graphics , Illustration, and photography...

contact us

Are you interested in working with us for your next design project? Feel free to send us a message...