Event click, Attr, Event.PreventDefault, images change work

First of all, I start to write in English from now on will be very personal things in Spanish, or who knows … but will include English language at my blog, for a test of how far my article.

This is a small image change work for a catalog of products from a customer in theadvertising agency where I work, something simple but very useful, to make an image gallery and clicking will change the main image .

var rel = $(this).attr('rel');

I do not think i have to explain code jQuery, if is doubt comment on the article.

Well, i finish as usual…

Until next time.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s