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

default value #1

Open
blonkm opened this issue Oct 21, 2015 · 1 comment
Open

default value #1

blonkm opened this issue Oct 21, 2015 · 1 comment

Comments

@blonkm
Copy link

blonkm commented Oct 21, 2015

I am looking for a way to set a default value in the field. So when the field is empty, and the user clicks on it, the text field appears with the default value set. Do you have ideas how to do this?

@blonkm
Copy link
Author

blonkm commented Oct 21, 2015

ok it wasn't that hard

            if (value=='') {
                value = options.defaultValue($(this));
            }

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