TAG
JavaScript
Result
Run
License
<p>What is your hobby?</p> <p><span>Multiple</span> choices available</p> <input type="checkbox" value="movie" checked /> <label>Watching movies</label> <input type="checkbox" value="cooking" /> <label>Cooking</label> <input type="checkbox" value="travel" /> <label>Travel</label>
$(function() { // input 요소가 타입이 체크박스이면서 체크가 안된 요소 $("input:checkbox:not(:checked)").next().css("font-style", "italic"); });
Console
expand_less
License
License
by DevDic
Close