how to pass form name dynamically into jquery for validation
<p>i'm using jquery for form validation, where when i click save button, the code is as below</p>

<pre><code>&lt;input type="submit" value="Save" id="button" name="Save" onClick="save(this,'/Web/controller',this.form);"&gt;
</code></pre>

<p>and the javascript is as below</p>

<pre><code>function save(ele,servlet,formName){
$(document).ready(function() {
  $("#fmyFormName").validationEngine({    //how to pass form name dynamically here from js
     submitHandler: function(form) { 
        $(form).ajaxSubmit(); 
     } 
  })
 });
}
</code></pre>

<p>so i want to create generic javascript so its can handle any form, so how can i pass the form name into jquery dynamically, i try few combination such as form[id=strcmd.name],...
but not work, can anyone help</p>
