• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Input type button loses value after cloned (js FieldAdder)

sonnb

Well-known member
#1
In xenforo.js, FieldAdder function would remove input value after cloned.

Code:
$clone.find('input').val('').attr('disabled', true);
But this also removes value (which is the label) of input type button.

I think we should not remove value of input[type="button"] ?