i have three checkboxes in HTML
<input type="checkbox" id="a1"/>
<input type="checkbox" id="a2" />
<input type="checkbox" id="a3" />
<span class="price"></span>
I want to do this:
If id A1 is checked, change text in span to priceUp.
If ids A1 and A2 is checked, change text in span to priceDown.
If ids A1,A2 and A3 is checked, change text in span to priceNormal.
Try this
Check Fiddle