Hello I would like to know how to add custom class to label if checkbox checked?
Thank you

Comments

megabait’s picture

I am used this script and "Multi-column checkboxes radios"

$(document).ready(function($) {
	$("table.multicolumncheckboxesradios-table td").find('input').click(function() {
		if ($(this).is(":checked"))
			$(this).parent().parent().addClass('button')
		else 
			$(this).parent().parent().removeClass('button')
		});
});
quicksketch’s picture

Status: Active » Closed (won't fix)

As mentioned in the submission guidelines, I don't provide help with custom coding:

Any issues regarding "how do I code ..." or "how do I theme ..." will not be answered. Please look elsewhere for coding resources.

Please refer to other resources such as IRC or Drupal StackExchange to ask your questions.