Get checkbox checked values using ECMA Script

function getCheckBoxselectedControl(controlName) {
    var favorite = "";
    $.each($("input[name=" + controlName + "]:checked"), function () {
        favorite += ($(this).val()) + ",";

    });
    return favorite;
}

Comments

Popular posts from this blog

SPSiteDataQuery to get data from multiple lists in site collection level in sharepoint 2013

My Interview Experience

Get List items using Camel Query with REST API SharePoint