Skip to content

Placeholder #198

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

Closed
ray73864 opened this issue Sep 15, 2014 · 5 comments
Closed

Placeholder #198

ray73864 opened this issue Sep 15, 2014 · 5 comments

Comments

@ray73864
Copy link

Is there anyway to have the placeholder always visible?

Currently the placeholder shows when the input box in question doesn't have the focus, but as soon as it has the focus and you start typing, the placeholder disappears.

@igorescobar
Copy link
Owner

Yes, this is how html5's placeholder attribute works.

Sent from my iPhone

On 15/09/2014, at 01:25, ray73864 notifications@github.com wrote:

Is there anyway to have the placeholder always visible?

Currently the placeholder shows when the input box in question doesn't have the focus, but as soon as it has the focus and you start typing, the placeholder disappears.


Reply to this email directly or view it on GitHub.

@ray73864
Copy link
Author

I tried setting a 'placeholder' HTML5 attribute on my input, but it just did the usual, the moment i started typing in the input box, the placeholder disappeared.

I want the opposite, i want the '/' in the date to always be there while you are typing.

Doesn't matter though, as much as i like this plugin, i found one that does exactly what i need so am using that for now.

@igorescobar
Copy link
Owner

That is what I meant with my previous message. We only implement the HTML5 placeholder so... You can't change it :)

Sent from my iPhone

On 16/09/2014, at 02:34, ray73864 notifications@github.com wrote:

I tried setting a 'placeholder' HTML5 attribute on my input, but it just did the usual, the moment i started typing in the input box, the placeholder disappeared.

I want the opposite, i want the '/' in the date to always be there while you are typing.

Doesn't matter though, as much as i like this plugin, i found one that does exactly what i need so am using that for now.


Reply to this email directly or view it on GitHub.

@ghost
Copy link

ghost commented Sep 21, 2018

@ray73864 what is the plugin you are using to show the placeholder while the user typing?

@ray73864
Copy link
Author

@ray73864 what is the plugin you are using to show the placeholder while the user typing?

This one here: https://github.com/digitalBush/jquery.maskedinput
It isn't maintained anymore, but I found it a bit more powerful.

These days though I use Cleave.JS, it doesn't support the fine-grain that others have, but it does what I want and has support for libphonenumber.

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

2 participants