javiertoledo / bootstrap-rating-input

Another plugin that eases the generation of rating stars for jQuery and Bootstrap
MIT License
319 stars 155 forks source link

Question about submitting data #9

Closed lofstrand closed 10 years ago

lofstrand commented 10 years ago

Hello I love this javascript for rating, I'm new with javascript and trying to learn more and more by looking at others code. I'm trying to use this to rate stuff at my site and I am now wondering if it is possible to submit the star rating to somewhere?

javiertoledo commented 10 years ago

This is the actual intention of this plugin, you can create a form like this to submit the selected rating to your server:

<form action"/your/backend/action">
    <input type="number" name="your_awesome_parameter" id="some_id" class="rating" />
    <input type="submit" value="Submit rating" />
</form>