I am trying to remove the value "banana" along with its element "li" in div column 1 if it doesnt match any value from column 2, but it shouldn't delete it if there is a matching value.
Not sure how can i achieve it though using javascript/jquery.
Here's what i have started so far:
<div class="container">
  <div class="column1">
  <ul>
  <li>apple</li>
  <li>banana</li> <!-- remove this element along with its value  if there is no matching content in column2 -->
  <li>orange</li>
  <li>lemon</li>
  </ul>
  </div>
  
  <div class="column2">
  <ul>
  <li>apple</li> 
  <li>banana</li> 
  <li>orange</li>
  <li>lemon</li>
  </ul>
  </div>
</div>
https://jsfiddle.net/Rgohing/wq3knp4z/
Appreciate any help that I can get.
 
     
    