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

Checkbox Title as Title of the toggle #46

Open
CarnVanBeck opened this issue Apr 23, 2015 · 0 comments
Open

Checkbox Title as Title of the toggle #46

CarnVanBeck opened this issue Apr 23, 2015 · 0 comments

Comments

@CarnVanBeck
Copy link

Hi,

I recently had the requirement to add a simple tooltip to the toggles, so i tried to add a title.
But the toggle doesn't take the title, so I created this little script, that takes the title from the checkbox and pushes it onto the div.

$.each($('input[type="checkbox"][title]'), function (sender) {
        $('#' + $(this).attr("id") + ' + .toggle-group').attr("title", $(this).attr("title"));
    });

Is there a better way?

regards,
CarnVanBeck

hranicka added a commit to hranicka/fork-minhur-bootstrap-toggle that referenced this issue Jun 10, 2015
landy2005 added a commit to landy2005/bootstrap-toggle that referenced this issue Mar 7, 2019
Preserve checkbox title attribute [Closes minhur#46]
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

No branches or pull requests

1 participant