There are 2 images and a variable.
var score = '0';
<div class="parent">
<id ="trophy" src="imageTrophy.jpg" style="display:none"/>
<id ="progressing" src="imageprogress1.jpg"/>
</div>
How write a if statement shorthand to toggle between these 2 images depending on the score?
score == 10 ? $('.parent').find('img').toggle() : $('.parent').find('img').toggle();