Changeset 4329 for trunk/plugins/validate/test/events.html
- Timestamp:
- 12/28/07 16:40:03 (1 year ago)
- Files:
-
- 1 modified
-
trunk/plugins/validate/test/events.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/validate/test/events.html
r4324 r4329 12 12 <script type="text/javascript"> 13 13 $().ready(function() { 14 $("#commentForm").delegate("focusin", ":text, textarea", function() { 14 var handler = { 15 focusin: function() { 16 $(this).addClass("focus"); 17 }, 18 focusout: function() { 19 $(this).removeClass("focus"); 20 } 21 } 22 $("#commentForm").delegate("focusin focusout", ":text, textarea", function(event) { 23 /* 15 24 this.addClass("focus").one("blur", function() { 16 25 $(this).removeClass("focus"); 17 26 }); 27 */ 28 handler[event.type].call(this, arguments); 18 29 }); 19 30 $("#remove").click(function() {
