adding a unique ID or class
-
Im looking to add a unique class or id to the class=”testimonial_slideri”
I tried this code:
<script type="text/javascript"> jQuery('.testimonial_slideri').each(function() { var i; i = i+1; jQuery(this).addClass('testimonial_number_' + i); }); </script>
But I keep getting NaN – not a number:
<div class="testimonial_slideri testimonial_number-NaN" style="border: 0px solid rgb(221, 221, 221); width: 400px; height: 250px; background-color: transparent;">
Please help, thank you.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘adding a unique ID or class’ is closed to new replies.