Blog from the Loft

Thoughts without walls

Blog from the Loft header image 4

Understanding this, $(this), and event in a JQuery callback function

January 1st, 2009 · No Comments · jquery

I run into this issue all the time. Inside a callback function,
like a function that response to OnClick, do I use this,
$(this), or event to get to what I need?
Let’s use a real example to demostrate what to do: A web page of
biography for a website uses a side menu to select one of several [...]

[Read more →]

Tags:

JQuery Cheatsheet

September 2nd, 2008 · No Comments · technology

JQuery is useful, but it is built on top of the idiosyncratic javascript and DOM model. I find the whole environment lack consistency. So here are some quick cookbook style notes on how to do specific things:
Clear all checkboxes in a form
$(”:checkbox”).attr(”checked”,false)

Technorati Tags: jquery

I Love Social BookmarkingSubscribeDiggdel.icio.usFacebookMa.gnoliaRedditStumbleUponTechnorati

[Read more →]

Tags: