title: jQuery $('body').on with parameter
body: <p>I have function </p>
  
  <pre><code>    $('body').on('click', '.urlsend', function ()
      {
           console.log("this.parameter");
      }
  </code></pre>
  
  <p>and all elements with ".urlsend" have some parameter, which I need to pass to the function. 
  HTML looks like this:  </p>
  
  <pre><code>&lt;div id="canvas"&gt;
  
  &lt;/div&gt;
  
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  function loadImgs(){
  
  &lt;!--somecode--&gt;
  
    function gotData(arr){
      var element="";
      for(var i = 0;i&lt;arr.data.length;i++)
      {
          var img = arr.data[i].images.original.url;
          element += '&lt;img src="'+img+'" class="urlsend" data-url="'+img+'"&gt;';
  
      }
      $('#canvas').html(element);
    }
  
  }
  &lt;/script&gt;
  </code></pre>