Currently a theme I purchased is set up with a star rating system. From what I've been able to come up with, a JQuery function calculates the rating based on the ID of the star that is clicked, as controlled by this code below:

```
<div class="rating-send-form">
<div class="rating-ipnuts">
<div class="rating-details">
<button class="send-rating"><?php _e('Post Wait Time','ait'); ?></button>

<div class="rating clearfix" data-rating-id="<?php echo $i; ?>" data-rated-value="0">

<div class="stars clearfix">
<?php for($j = 1; $j <= $starsCount; $j++) { ?>
<div class="star" data-star-id="<?php echo $j; ?>"></div>

<?php } ?>

</div>
</div>

```

The data-star-id that is clicked is sent to calculate the rating, like below:

```
// rating
$(document).on("click", "#ait-rating-system .rating-send-form .star", function(event) {
var rating = $(this).parent().parent();
var ratingId = rating.data('rating-id');
var id = parseInt($(this).data('star-id'));
$(this).parent().find('> div').slice(0,id).css("background","url('"+themeUrl+"/design/img/rating_star_active.png') no-repeat 0 0");
rating.data('rated-value',id).addClass('already');      
});

```

What I'd like to do is replace the clicking of stars with a simple text input field. How would I go about sending a text value to this function to replace the data-star-id that is currently sent?