Thursday, April 23, 2015

ASP.NET CheckBoxList Operations with jQuery - change color of checked items

 $("[id*=chk] input:checked").each(function () {

                            $(this).parent().css('color', $(this).is(':checked') ? 'blue' : 'black');

                       

                        });

No comments:

Post a Comment