set input checkbox value in jquery using asp.net

Hi ,
here am getting a string in jquery and am splitting that string.
Am assigning those values in asp.net page.

if (separated[8] == "True") {
                    $("#ContentPlaceHolder1_CheckBox2").attr('checked', true);
                    $("#div3").show();
                }
                else {
                    $("#ContentPlaceHolder1_CheckBox2").attr('checked', false);
                    $("#div3").hide();
                }

Comments

Popular posts from this blog

what is Event Cache table in sharepoint

CAML Query syntax and options in SharePoint

Change anchor link url in sharepoint calender