Uncheck the checkbox using jquery
I've an Textbox in which the autocomplete is enabled using jquery ajax.if i select one value means it have to check the corresponding checkbox.This one works me properly.If i delete that value means it have to uncheck that checkbox..Help me out please..My Jquery code is
- $('#prgrp').on('keydown', function (evt)
- {
- var txt = $("#prgrp").val();
- var valueArray = txt.split(';');
- var valueSortArray = valueArray.sort();
- for (var i = 0; i < parseInt( txt.split(';').length); i++)
- {
- $('#<%= group12.ClientID%> input').each(function () {
- if ($(this).val() == valueSortArray[i].valueOf())
- {
- $(this).attr('checked', true);
- }
- });
- }
- });
- Here prgrp is Textbox id and group12 is checkboxlist id which is bind from database using Asp.net C#

- i deleted that value 0042A but the checkbox is still checked..This is my problem help me out please