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

Add support for placeholder #43

Merged
merged 1 commit into from
Oct 30, 2013
Merged

Add support for placeholder #43

merged 1 commit into from
Oct 30, 2013

Conversation

jreyes
Copy link
Contributor

@jreyes jreyes commented Oct 29, 2013

Would be good if the plugin could support a text placeholder

timschlechter added a commit that referenced this pull request Oct 30, 2013
@timschlechter timschlechter merged commit 090aa87 into mdbootstrap:master Oct 30, 2013
@timschlechter
Copy link
Contributor

Nice, thnx!

@@ -31,9 +31,11 @@
this.isSelect = (element.tagName === 'SELECT');
this.multiple = (this.isSelect && element.hasAttribute('multiple'));
this.objectItems = options && options.itemValue;
this.placeholderText = element.hasAttribute('placeholder') ? this.$element.attr('placeholder') : '';
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to make it work in ie7 slight change ...

this.placeholderText = this.$element.attr('placeholder') ? this.$element.attr('placeholder') : '';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to comment above ran into this problem as well.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Successfully merging this pull request may close these issues.

5 participants