how to get the form name dynamically : I have many forms that are dynamically created and each form is ends with a number which is incremental. Each form has a submit button which also has a dynamically assigned name.

I am using the following code to call a function but its limited to only one form. Is there anyway to customize it so it dynamically uses the form name assigned?

**THE JQUERY**

<!-- begin snippet: js hide: false -->

<!-- language: lang-none -->

        $("myform0").submit(function (e) {
            //Stops the submit request
            e.preventDefault();
        });

        //checks for the button click event
        $("#submit0").click(function (e) {
            callfunction();
        });

<!-- end snippet -->

**The HTML**

<!-- begin snippet: js hide: false -->

<!-- language: lang-none -->

    <form name="myform0">
      <input type="hidden" name="caseid" value="5008000000oYdXIAA0">
      <input type="submit" name="submit0" value="submit">
    </form>

<!-- end snippet -->