You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's odd...I can't reproduce your issue, and a quick test in Firebug shows .val('') to be working just fine in jQuery 1.3.2. What browser are you using? What version of jQuery? It seems the behavior of .val varies slightly between versions, for certain elements.
From dirley...@gmail.com on July 18, 2010 00:20:35
Having a formset with a textarea, and having this textarea a value, when a new row is inserted, it'll copy the textarea value.
It's simple to solve:
if (elem.is('input:checkbox') || elem.is('input:radio')) {
elem.attr('checked', false);
}
else if (elem.is('textarea')) {
elem.html('');
}
else {
elem.val('');
}
Original issue: http://code.google.com/p/django-dynamic-formset/issues/detail?id=11
The text was updated successfully, but these errors were encountered: