Kalyani Shevale

Kalyani Shevale

  • NA
  • 3.2k
  • 659k

how to compare two arraylist with parameter in jquery

Nov 27 2018 3:07 AM
I have two ArrayList with their parameter .how to compare each parameter using Jquery.
1st Array List
  1. var resultQuiz=[];
  2. $(.'chklist').each(function(i){
  3. resultQuiz.push({  
  4.                     Id: Id,  
  5.                     Message: 'Ranking',  
  6.                     selectedAnswerOptionID: $(this).attr('id'),  
  7.                     value: $(this).text(),  
  8.   
  9.                 })  
  10. });
2nd arrayList
  1. var isRequiredList=[];
  2. $('.lblisrequire').each(function(i)  
  3.             {  
  4.                   
  5.                 isRequiredList.push({  
  6.                     Id:$(this).attr('id')  
  7.                 });  
  8.             });        
 how to match each parameter is exist or not in both arraylist using Jquery.
 matched element store in another arraylist.

Answers (2)