I'm running into an issue using remote method and a name array

<tr id="11" class="orgRow">
        <td align="center"><input name="org[]" value="11" checked="checked"
type="checkbox"></td>
</tr>
<tr id="12" class="orgRow">
        <td align="center"><input name="org[]" value="12" checked="checked"
type="checkbox"></td>
</tr>
....
[multiple of these rows above only with different values]


I have the script referencing the name array, but can not get it to
submit all of the objects.

        $("#formsubmit").validate({
                rules: {
                        'org[]': {
                                remote: "index.php?action=org"
                        }
                },
                messages: {
                        'org[]': {
                                remote: "Error Message Here"
                        }
                }

Remote only sends the first item in the array of objects

Array
(
    [0] => 11
)

Is there any way to get it to send the full array of selected objects?

Array
(
    [0] => 11
    [1] => 12
    ....
)

I do not need error messages for each item, rather only one error
message to if any of them were selected or not or if the array
exists.  This is why I would like to send the whole array via the
remote to server side validation.

Is there any way to do such a thing with this plugin?

Reply via email to