Skip to content

Mod for field names like "aFieldName[]" for php arrays #3

@arkytn

Description

@arkytn

I did make one mod to this for field names of the form "aFieldName[]" for php arrays. I set the clones name to a blank string "" so it doesn't show up in the array.

  Plugin.prototype.initialize = function() {
    var $element = $(this.element);
    $element
    .val($element.attr('value'))
    .clone()
    .removeAttr('id class required')

    .attr('name', '') //so clone doesn't submit. <--Added

    .insertBefore(this.element)
    .hide();
  };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions