title: How to detect changes in a muti list box using jquery
body: <p>Using the code below I am able to add and remove elements using the add'remove buttons.Now Im trying to detect changes when a change occurs in any of these list boxes.How do i go about doing that using jQuery?</p>
  
  <pre><code>$(document).ready(function() {
  
      $('#btn-add').click(function(){
          $('#select-from option:selected').each( function() {
                  $('#select-to').append("&lt;option value='"+$(this).val()+"'&gt;"+$(this).text()+"&lt;/option&gt;");
              $(this).remove();
          });
      });
      $('#btn-remove').click(function(){
          $('#select-to option:selected').each( function() {
              $('#select-from').append("&lt;option value='"+$(this).val()+"'&gt;"+$(this).text()+"&lt;/option&gt;");
              $(this).remove();
          });
      });
  
  });
  </code></pre>