Search for element with matching content

Search for element with matching content

Here is what I'm trying to achieve:
For each li in .one , search for li's in .two that has matching content, and then wrap them both in div.  Any Ideas on how I can achieve this?

Below is my code so far.

  1. $(document).each(function() {
  2. var pMatch = $('.one li').contents();
  3. var sMatch = $('.two li').contents();
  4. if ($(pMatch === sMatch)) {
  5.      
  6.     $('.show-here').text('This is Working');
  7.   }
  8.     else {
  9.        
  10.     $('.show-here').text('This is not Working');
  11. }
  12.    
  13. });


Here is a link to jsfiddle with the code.