<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -7,6 +7,8 @@
  * - On blur, adds the default text and css class back if the user did not fill in the form element.
  * - Adds a class to the form element that is removed when user puts information in. This allows 
  *   styling of the label with a lighter color than when the user has &quot;real&quot; text in the form element.
+ *
+ * NOTE: It only works with input[type=text] and textarea fields. All other elements are ignored.
  * 
  * Usage: 
  * 		$('input').labelize(); // uses blank as the class so you could use style input.blank {color:#ccc;}
@@ -21,7 +23,9 @@
 	 */
 	$.fn.labelize = function(options) {	
 		return this.each(function() {
-			new $.labelize(this, options);
+			if ((this.tagName.toLowerCase() == 'input' &amp;&amp; $(this).attr('type') == 'text') || this.tagName.toLowerCase() == 'textarea') {
+				new $.labelize(this, options);
+			}
 		});
 	};
 	</diff>
      <filename>jquery.labelize.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>144f34aa45aa38478b584fa8eaf6c640762c0f08</id>
    </parent>
  </parents>
  <author>
    <name>John Nunemaker</name>
    <email>nunemaker@gmail.com</email>
  </author>
  <url>http://github.com/jnunemaker/javascripts/commit/0edac49c2c4b5aeb3142045426c5d9572b63637e</url>
  <id>0edac49c2c4b5aeb3142045426c5d9572b63637e</id>
  <committed-date>2008-07-02T20:31:14-07:00</committed-date>
  <authored-date>2008-07-02T20:31:14-07:00</authored-date>
  <message>Modified labelizer to only work with input[type=text] and textarea fields as it wouldn't make sense with any other element.</message>
  <tree>88a45c2306bd518a5658ed22fb1d04ca53d5c63f</tree>
  <committer>
    <name>John Nunemaker</name>
    <email>nunemaker@gmail.com</email>
  </committer>
</commit>
