[Solved] Search textbox using checkbox in Javascript
You can use something like this: $(‘:checkbox’).on(‘change’, function() { if ($(this).is(‘:checked’)) { $(“.content”).addClass(“highlight”); } else { $(“.content”).removeClass(“highlight”); } }); And in the CSS you need to have: .highlight {background: #99f;} Snippet $(function () { text = “Lorem ipsum dolor sit amet, consectetur adipisicing elit. Incidunt repellat sint eligendi adipisci consequuntur perspiciatis voluptate sunt id, unde … Read more