If I have:
function printRangeValue(){
$(this).prev().children("output").text( $(this).val() );
}
$(document).ready(function(){
//...
$("#strStat").printRangeValue();
$("#conStat").printRangeValue();
});
<label for="strStat">Strength<output id="forStr" for="strStat">12</output></label>
<input type="range" id="strStat" class="stat" name="strStat" min="3" max="20">
Is there a simple way to change the content of the ready function to make $(this)
work?
Thanks!