Greetings,
Using Sharepoint 2016 on Prem ,Calling below method onclick ( Jquery method )
$("#tbldetailsright input[type=checkbox]").each(function () {
if ($('#' + this.id).is(':checked', true) && this.id.substr(0, 3) != "chk") {
m_id += this.id + ';';
m_deptID += $('#' + this.id.substr(3)).find("td").eq(6).text() + ';';
}
});
Problem:
i am making loop around table to get select checkbox ID .
Problem: if i use search then above loop works only available item to get selected check boxID although many other's are also check but it does not work for those selected checkbox.
if i remove search then it works fine to get all selected checkbox ID.
Solution Required;
wheatear user click "Add button" after typing text on search or without typing text on search it should fetch All select checkboxID ( like its working without typing text on search )
Below images are for reference ( image 1 works fine becuase no text is writton on search )
Image 1
image 2 does not work fine becuase text is written on search ,so it works only available record using above methos
Image 2
Thanks