title: Can we pass a jsp variable to jQuery ready function
body: <p>I a have a jQuery ready function given below, I need to pass a value to the <code>myLocFn()</code>. What I am asking is, as we are using ready function ,if it possible to pass a jsp value to myLocFn().</p>
  
  <pre><code>&lt;script&gt;  
  $(document).ready(function(){
      $(".myDiv").myLocFn();     // need to pass a value here                  
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>I have included the js path as well <code>&lt;script src="myLocFn.js"&gt;&lt;/script&gt;</code>. 
  Where the my js starts with,</p>
  
  <pre><code>(function($){
      $.fn.myLocFn= function(options) {
  ..... // need to get the value here
  </code></pre>