I'm trying to implement a star rating system using the method here: https://stackoverflow.com/a/1987545/1543310 I've been able to get it to work successfully but I'm trying to tailor it to the output of the woocommerce star rating system so I can easily change the outputted image.
Basically I'm wondering if there's a way to target and change the contents of the <strong>
tag in the below html if there wasn't a class attached, as there are a couple other renditions of how the following is outputted, but they all include a strong tag inside a <div class="star-rating">
.
HTML:
<div class="star-rating">
<span>
<strong class="rating">3.5</strong>
</span>
</div>
I've setup a fiddle here with what I'm trying to do: http://jsfiddle.net/AwCLm/ with the woocommerce html output included.
Here's a working example I setup, but it requires a class to be set for the <strong>
: http://jsfiddle.net/YYWQx/1/