title: Call JQuery function with arguments
body: <p>I have following JS function.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function() {
  
  
          $("#fancybox-manual-a").click(function() {
              var imageName="facebook-default-no-profile-pic.jpg";
              var name="xxx";
                              var age="111";
              $.fancybox.open([{
                  href : '&lt;?php echo base_url().'public/';?&gt;image,
                  title : name+' '+age
              }]);
          });
  
      });
   &lt;/script&gt;
  </code></pre>
  
  <p>I use this function as HREF link as follows and it works fine. </p>
  
  <pre><code>&lt;a id="fancybox-manual-a" href="javascript:;"&gt;Click&lt;/a&gt;
  </code></pre>
  
  <p>But I want to parse some arguments(values for <strong>name</strong> and <strong>age</strong>) when I call <strong>fancybox-manual-a</strong> function. How can I do ?</p>