var cityName=""; $("#<%=TreeView1.ClientID %> input[type='checkbox']:checked").next().each(function () { cityName+=$(this).html()+","; });