Trigger Click on Input when Label is Clicked
Labels should have "for" attributes that match the ID of the input they are labeling. This means we can snag that attribute and use it in a selector to trigger a click on the input itself. Assuming of course you have some reason to watch for clicks on inputs.
labelID = $(this).attr('for');
Learn HTML, CSS, and how to build iPhone apps at
Treehouse. Their library of over 1,000 current training videos from expert teachers can get you up to date on the latest web technology.
The Lodge is a member login only area with access to video training on how to build websites from scratch using the best modern tools.
How much do you value your keyboard typing skills?
 Not valuable. I don't type and don't need to. (1%, 258 Votes)
 Barely valuable. I'm happy 'hunting and pecking' when I need to. (1%, 129 Votes)
 Not very valuable. I can type a little and I'm not compelled to get better. (1%, 204 Votes)
 Slightly valuable. I get by with my limited typing skill. (3%, 537 Votes)
 Meh. I can type OK, but I don't even think about it. (8%, 1,702 Votes)
 A little valuable. I can do it but I don't put much stock in it. (5%, 1,047 Votes)
. Somewhat valuable. I learned to type, do it OK, and I'm glad I know. (9%, 1,856 Votes)
 Quite valuable. I can type well but I don't really practice. (46%, 9,846 Votes)
 Very valuable. I try and get better at it when I can. (15%, 3,101 Votes)
 Extremely valuable. I train and practice typing. (11%, 2,552 Votes)
*May or may not contain any actual "CSS" or "Tricks".