Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insert an optional "label" tag before the "select" tag #23

Merged
merged 2 commits into from
Nov 14, 2012

Conversation

larcher
Copy link
Contributor

@larcher larcher commented Oct 31, 2012

To make the select more accessible, it helps to add a label tag. I added it as another option in the settings object.

Use the option like this:

jQuery(".menu").tinyNav({ label: 'Table of Contents' });

which creates HTML that looks something like this:

<label class="tinynav tinynav1" for="tinynav1">Table of Contents</label>
<select id="tinynav1" class="tinynav tinynav1">
    <option value="...">...</option>
    ...
</select>

arielsalminen added a commit that referenced this pull request Nov 14, 2012
Insert an optional "label" tag before the "select" tag
@arielsalminen arielsalminen merged commit db939b2 into arielsalminen:master Nov 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants