I'm a newbie when it comes to jQuery and I'm hoping if there's a way to override an existing on click function.
The code is as follows:
$('.woo-star-rating').on('click', function() {
$('.woo-star-rating-filled').width( $(this).attr('data-rating') * 25 )
});
and I'd like to change the number 25 to 21 inside my own .js file.
$('.woo-star-rating').on('click', function() {
$('.woo-star-rating-filled').width( $(this).attr('data-rating') * 21 )
});