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

verifyLabel should create a label tag instead of paragraph #74

Open
zeroedin opened this issue Jul 31, 2019 · 0 comments
Open

verifyLabel should create a label tag instead of paragraph #74

zeroedin opened this issue Jul 31, 2019 · 0 comments

Comments

@zeroedin
Copy link

zeroedin commented Jul 31, 2019

options.verifyLabel should create a <label> tag referencing the <input>. The input will need also need a id attribute as well.

var verification = $('<input/>', {"type": 'text', "id": "confirm", "class": settings.verifyClass}).on('keyup', function () {
  commit.prop('disabled', !isMatch($(this).val()));
});

...

if (options.verifyLabel)
        body.append($('<label>', {text: options.verifyLabel, for: 'confirm' }))
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