Skip to content

Commit

Permalink
pl().val() works well for inputs now (not only textareas)
Browse files Browse the repository at this point in the history
  • Loading branch information
chernikovalexey committed May 1, 2012
1 parent 105714b commit b89d2f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Extensions/Dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@
val: function(insert) {
if(!pl.type(insert, 'undef')) {
pl.each(this.elements, function() {
this.value = insert;
if(pl(this).tag('textarea')) {
this.value = insert;
} else {
this.setAttribute('value', insert);
}
});
return this;
} else {
Expand Down
2 changes: 1 addition & 1 deletion prevel-full.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Prevel Library v1.2.11
/* Prevel Library v1.2.12
* http://github.com/chernikovalexey/Prevel
*
* Copyright 2011-2012, Alexey Chernikov
Expand Down

0 comments on commit b89d2f0

Please sign in to comment.