> I kept thinking, "hmm, I think this should be  shorter".

Wouldn't this work? (I haven't tried it.)

$("input:checkbox").click(function(){
  $("#"+this.className).[(this.checked?"show":"hide")]();
});

I am pretty sure all the browsers support .className and .checked as
properties.

Reply via email to