title: Call method with parameter from jQuery or Ajax
body: <p>Do you have some sample code that from you can show how to call java method from your Ajax? The following code can call the Java method:</p>
  
  <pre><code>$.ajax({ type: "POST",
  url: "test.java",
  data: data,
  success : function (data) 
  { // Your return categories in data // Append list options to select2 }
  }); 
  </code></pre>
  
  <p>But here in the URL how should I need to pass the URL and how I pass the method parameter?</p>