Posts tagged as:

jquery

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

January 1, 2009

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 the full article →

JQuery Cheatsheet

September 2, 2008

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

Read the full article →