rck6982
rck6982

Reputation: 239

FormData doesn`t work when I try to append

In Google Chorome's DevTool I try to do that:

var fd = new FormData();
fd.append('newField', 'someValue');

but fd still is empty. Any Idea?

Upvotes: 2

Views: 1240

Answers (1)

Paul Fitzgerald
Paul Fitzgerald

Reputation: 12129

fd.get('newField');

The above will return 'someValue'.

You should note that it is supported on Chrome v50 and firefox v39. See here for support.

Upvotes: 1

Related Questions