These commits add support for labels associated with the original select control, fixing issue #257.
For standard select controls, the chosen field gains focus when the label is clicked.
For multiple select controls, the chosen field gains focus and the results drop-down list becomes visible when the label is clicked.
Add support for labels
Regenerate output files with support for labels
@matflores the changes in the compiled files look weird. Did you use the task in the Cakefile to build them or a custom way ?
Regenerate output files
@stof I used the cake build task, but had an old version of coffee installed. I've just regenerated everything with v1.2.0.
Any chance this gets merged to master?
Added PR #564
I'd be happy seeing this pulled into chosen. However, it does miss the case where a label wraps its input:
<label>Full name: <input name=fn></label>
Do you think it's worth accounting for?
I for one would love to see this worked into the master (as well as ericbock's comment just above).
I'm also really baffled why I'm not able to simulate this behavior using the custom events, e.g. here: http://brokendisk.com/code/chosen/index.html
@matflores Thanks for this - it's nice. I've opened a new pull request with your commits #1152 (had to merge the latest master in). Wondering if we should also build to support the label around field type. Feel free to weigh in there.