add value to checkboxlist using javascript/jquery
<p>I want to add a value to a checkboxlist using javascript /jquery.The code below is my sample code</p>

<pre><code>function getExpertise() {

          $.ajax({

           type: "POST",

           url: "Sample.asmx/GetExpertiseBySpecialization",

           data: "{sId: '" + $('#&lt;%=ddlSpecialization.ClientID%&gt;').val() + "'}",

                 contentType: "application/json; charset=utf-8",

                 dataType: "json",

                 success: function(response) {

         var expertise = (typeof response.d) == 'string' ? eval('(' + response.d + ')') : response.d;

        $('#&lt;%=chkExpertise.ClientID%&gt;').attr('disabled', false).removeOption(/./).addOption('-1', 'Please select expertise');


        for (var i = 0; i &lt; expertise.length; i++) {

            var val = expertise[i].Id;

            var text = expertise[i].Expertise;

            $('#&lt;%=chkExpertise.ClientID%&gt;').addOption(val, text, false);

                                           }

                                       }

                                   });

                               }
</code></pre>
