focusLebels Function


/ Published in: JavaScript
Save to your folder(s)

A JS function that put the focus in the form field associated to a label element whenever is clicked. The for atributte of the label element must match the id attribute of the associated form field.
It takes no arguments.
From book Dom Scripting by Jeremy Keith

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.