+1  A: 

See jQuery Impromptu. There you can find a lot of samples.

rahul
Do you know of anything like this, but more like what I'm asking for, and in less lines of code?
Volomike