loading js function from another file
<p>i have a javascript like that</p>

<pre><code>$.fn.hasBorder = function() {   
  if ((this.outerWidth() - this.innerWidth() &gt; 0) ||  (this.outerHeight() - this.innerHeight() &gt; 0)){
        return true;
    }
    else{
        return false;
    }
};

function removeImage(){
$(document).ready(function() {
  var selectedImgsArr = [];
   $("img").click(function() {

      if($(this).hasBorder()) {
          $(this).css("border", "");
          //you can remove the id from array if you need to
      }
      else {
         $(this).css("border", "1 px solid red");
         selectedImgsArr.push($(this).attr("id")); //something like this 
         alert(selectedImgsArr);
 }
   });
</code></pre>

<p>I load this script to  my page. In order to use this script</p>

<p>i wrote this</p>

<pre><code>div load="removeImage"&gt;
</code></pre>

<p>What it does not work ? </p>
