Skip to content

Commit

Permalink
switch to placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
Amiel Martin committed Jan 26, 2010
1 parent baa080c commit 2121986
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.rdoc
Expand Up @@ -6,7 +6,7 @@ Placeholder text as an extremely simple jquery plugin.

=== HTML

<input type="text" id="search" data-tabularosa="Search Here" name="q" />
<input type="text" id="search" placeholder="Search Here" name="q" />

== jQuery

Expand Down
2 changes: 1 addition & 1 deletion tabularosa.js
Expand Up @@ -10,7 +10,7 @@ $.fn.tabularosa = function(value) {
return this.each(function() {
var self = $(this),
klass = 'tabularosa',
value = value || self.attr('data-tabularosa'),
value = value || self.attr('placeholder'),
set_value = function() {
if ($.trim(self.val()) == '' || self.val() == value)
self.val(value).addClass(klass);
Expand Down
2 changes: 1 addition & 1 deletion tabularosa.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2121986

Please sign in to comment.