Uncheck the checkbox using jquery

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 
  1. $('#prgrp').on('keydown', function (evt)
  2.              {
  3.                  var txt = $("#prgrp").val();
  4.                  var valueArray = txt.split(';');
  5.                  var valueSortArray = valueArray.sort();
  6.                  for (var i = 0; i < parseInt( txt.split(';').length); i++)
  7.                  {
  8.                         $('#<%= group12.ClientID%> input').each(function () {
  9.                          if ($(this).val() == valueSortArray[i].valueOf())
  10.                          {
  11.                              $(this).attr('checked', true);
  12.                          }
  13.                       });
  14.                  }
  15. });
  • 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