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

Placeholder doesn't work. #61

Closed
CSergienko opened this issue May 8, 2015 · 5 comments
Closed

Placeholder doesn't work. #61

CSergienko opened this issue May 8, 2015 · 5 comments

Comments

@CSergienko
Copy link

Using 2.1.0. Placeholders aren't working at all.

$('.selectbox').SumoSelect({
     placeholder: 'Test Placeholder'
});

Is this not the correct way?

@HemantNegi
Copy link
Owner

Hi,

Please check the demo page http://hemantnegi.github.io/jquery.sumoselect/sumoselect_demo.html
its working there, The recommended way is to set placeholder="Placeholder" attribute on select.

Hope it helps
cheers!

@CSergienko
Copy link
Author

That's very peculiar, because I did that too. It just ignores the placeholder.

<select id="id_helpwithbill" name="helpwithbill" class="selectbox" placeholder="Test"> does nothing, it still shows the first <option>

I see in the demo the .CaptionCont > span element gets a class placeholder, but this is not happening for me.

@HemantNegi
Copy link
Owner

can you set up a fiddle which replicates your issue, so that i can inspect.

@HemantNegi
Copy link
Owner

closing this for now, you can reopen any time

@CSergienko
Copy link
Author

Here's the fiddle, sorry for the delay. https://jsfiddle.net/twjzyqhL/

It's unstyled, but there's definitely no placeholder in there.

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