jQuery issue in IE
<p>Hello I'm using this function as an address book module, for selecting any employee from the sidebar it display all the content of the employee. It works fine in Chrome but not in IE. I'm not able to run the src variables declared in this function in IE. Please suggest me some other ways to declare these type of variables so that these will be compatible to all browsers.</p>

<pre><code>function singleSelect(id)
 {           
  if(flag){  
     unCheckAll();
     userIds="";
     //userIds= document.forms['frmSidebarSearch'].elements['userIds'].value + id +",";
     var src = ($("#"+id).attr("src") === "&lt;@core.basePath/&gt;images/chk-box-img.gif")
                        ? "&lt;@core.basePath/&gt;images/chk-box-img-tick.gif" 
                        : "&lt;@core.basePath/&gt;images/chk-box-img.gif";
      $("#"+id).attr("src",src);
      var src2 = ($("#anchor"+id).attr("class") === "")
                        ? "selected" 
                        : "";
      $("#anchor"+id).removeClass().addClass(src2);
       var elementss = document.getElementById("all").getElementsByTagName('img');
       for(i=0;i&lt;elementss.length;i++) {
             if($("#"+elementss[i].id).attr("src") === "&lt;@core.basePath/&gt;images/chk-box-img-tick.gif"){
             userIds=  userIds  +"," +elementss[i].id; 
              }
         }
      unHilightAll();
      highLightIndex(id);
      document.forms['frmSidebarSearch'].elements['userIds'].value=userIds;
      $('#frmSidebarSearch').ajaxSubmit({target:'#content',url:'&lt;@core.basePath/&gt;sp/manager/manageraddressbook/manager/'+id});
    }
    flag = true;
  }
</code></pre>
