Title: Filter the data even we checked the multi check boxes.
Description:
In below list Customer column has "Banking, Loan, Insurence" multi options there. We are going to display the data which is related to "Banking" service. to do that we are filter the data.
Creat a list name called "SupportDetails"
Create below colums. Chose "Customer" Coulmn as choice and allow multi items select.

Code:
https://lakkuoffice365.sharepoint.com/sites/lakku/SitePages/BankingService.aspx
add below code in BankingService.aspx

Description:
In below list Customer column has "Banking, Loan, Insurence" multi options there. We are going to display the data which is related to "Banking" service. to do that we are filter the data.
Creat a list name called "SupportDetails"
Create below colums. Chose "Customer" Coulmn as choice and allow multi items select.
Code:
https://lakkuoffice365.sharepoint.com/sites/lakku/SitePages/BankingService.aspx
add below code in BankingService.aspx
- <html>
- <head>
- <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
- <script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/4.0/1/MicrosoftAjax.js"></script>
- <script type="text/javascript" src="/_layouts/15/init.js"></script>
- <script type="text/javascript" src="/_layouts/15/sp.runtime.js"></script>
- <script type="text/javascript" src="/_layouts/15/sp.js"></script>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
- <div id="divListItems"></div>
- <script>
- $(function () {
- ExecuteOrDelayUntilScriptLoaded(retrieveListItems, "sp.js");
- });
- function retrieveListItems() {
- var clientContext = new SP.ClientContext();
- var oList = clientContext.get_web().get_lists().getByTitle('SupportDetails');
- var camlQuery = new SP.CamlQuery();
- uniq1="Banking";
- camlQuery.set_viewXml('<View><Query><Where><Eq><FieldRef Name=\'Customer\'/>' +
- '<Value Type=\'Text\'>'+ uniq1 +'</Value></Eq></Where></Query><RowLimit>100</RowLimit></View>');
- this.collListItem = oList.getItems(camlQuery);
- clientContext.load(collListItem);
- clientContext.executeQueryAsync(
- Function.createDelegate(this, this.onQuerySucceeded),
- Function.createDelegate(this, this.onQueryFailed)
- );
- }
- function onQuerySucceeded(sender, args) {
- var listItemInfo = '';
- var table = $("#tblcategories");
- var innerHtml = "<tr><td>Support Team</td><td>Contactnumber</td><td>MailID</td></tr>";
- var listItemEnumerator = collListItem.getEnumerator();
- while (listItemEnumerator.moveNext()) {
- var oListItem = listItemEnumerator.get_current();
- innerHtml += "<tr><td>"+ oListItem.get_item('Title') +"</td><td>" + oListItem.get_item('Contactnumber') +"</td><td>" + oListItem.get_item('MailID')+ "</td></tr>";
- }
- table.html(innerHtml);
- }
- function onQueryFailed(sender, args) {
- alert('Request failed. ' + args.get_message() +
- '\n' + args.get_stackTrace());
- }
- </script>
- </head>
- <table id="tblcategories">
- </table>
- </html>