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

Maybe add an explanation of default value to the docs #26

Closed
johncadigan opened this issue Oct 10, 2014 · 5 comments
Closed

Maybe add an explanation of default value to the docs #26

johncadigan opened this issue Oct 10, 2014 · 5 comments
Assignees

Comments

@johncadigan
Copy link
Contributor

Hello Javier!

Since I recently recieved and e-mail about setting default display values, it might be worth adding an explanation of how you can set default value when it is to be voted upon by seting a value for the input:

I hope you are well,

-John

@javiertoledo
Copy link
Owner

Yes, that would be useful, I'll add it if I find some time, PRs are welcome :-)

@vgoklani
Copy link

Hi - How do I set the default display values?

Thanks!

@javiertoledo javiertoledo self-assigned this May 25, 2015
@Ahtenus
Copy link

Ahtenus commented Jul 10, 2015

Hi, just for others reference this is how i managed to set default values:

<input type="number" name="rating" class="rating" value="3" />

But for some reason it didn't render the stars until one of the stars was hovered, so I added the following line to on DOM ready:

$(".rating-input i:first-child").trigger('mouseleave');

Cheers,
Viktor

@tarekadam
Copy link

Thanks Viktor. That fixed it.

javiertoledo added a commit that referenced this issue May 4, 2016
@javiertoledo
Copy link
Owner

I have added a section to the readme explaining how to set a defailt value https://github.com/javiertoledo/bootstrap-rating-input#can-i-set-a-default-value

@Ahtenus the bug you're describing here is fixed on version 0.3.1, thanks for reporting it ;-)

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

5 participants