title: Script error only in IE browser using jquery?
body: <p>Hi Iam using HTML/javascript/jquery. But i am getting below error in IE alone.I am using IE7 and XP.</p>
  
  <p><img src="https://i.stack.imgur.com/a80J4.png" alt="enter image description here"></p>
  
  <p>below is the code:</p>
  
  <pre><code>$(function(){
      $("select").multiselect();
      var i =1;
      $("select").change(function () {
          var str = $(this).val();
          $('.lbCriteriaContainer').html('');
          $.each(str, function(index, value) {
              var liTag = $('&lt;li class="lbAlt"&gt;&lt;/li&gt;');
              var removeIcon= $('&lt;img src="images/cross.jpg" style="cursor: pointer;width: 15px;padding-top: 3px;"&gt;');
              var textElement=$('&lt;span&gt;'+value+'&lt;/span&gt;');
              liTag.append(removeIcon);
              liTag.append(textElement);
              $('.lbCriteriaContainer').append(liTag);
  
              removeIcon.bind('click',function(){
                  liTag.remove();
                  $('select [value='+value+']').removeAttr('selected');
                  $('select').multiselect('refresh');
              });
          });
  
      }).change();
  
  
  &lt;script type="text/javascript" src="js/jquery-1.6.js" &gt;&lt;/script&gt;
  
  &lt;link rel="stylesheet" type="text/css" href="css/jquery.multiselect.css" /&gt;
  &lt;link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/ui-lightness/jquery-ui.css" /&gt;
  &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"&gt;&lt;/script&gt;
  &lt;script src="js/jquery.multiselect.js" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Thanks!</p>