chernikovalexey/Prevel — Issue #19: Textarea value isn't set when empty
Author: johnarleyburns
Created: 2012-02-04 21:25:52+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.