I want to change my <p>
tag style.
My html code:
<input type="checkbox"><p> paragraph</p>
jQuery:
$('ul.list').on("click", "input", function() {
if ( $(this).is(':checked') ) {
$(this).find('p').css("text-decoration", "line-through");
} else {
$(this).find('p').css("text-decoration", "none");
}
});