chernikovalexey/Prevel — Issue #20: Textarea value isn't set when empty
Author: johnarleyburns
Created: 2012-02-04 21:25:56+00:00
State: open

Using some textarea such as:

Default

Then running javascript code:

pl('#foo').attr({value: 'bar'}); // works
pl('#foo').attr({value: ''}); // does nothing
pl('#foo').attr({value: ' '}); // works (note single space)

When value is the empty string, instead of emptying the value, nothing happens.