pass img src path to php function through javascript
<pre><code>&lt;script type="text/javascript"&gt;
  $(function() { 
    $('.LSide img').click(function() { 
      $('.BigImage img').attr("src", $(this).attr("src")); 
      var img =$('.BigImage img').attr("src").slice(0,-5); 
      //alert($('.BigImage img').attr("src").slice(0,-5)) 
      //alert(img); 
    }); 
  });
&lt;/script&gt;
</code></pre>

<p>I want to pass that var img variable to php function, and call that php function at the click event. does it possible?</p>
