Author: Not specified Language: javascript
Description: No description (v2) Timestamp: 2012-08-22 16:11:46 -0400
View raw paste Parent paste by: johan Reply
  1. // Why this:
  2. var $moo = $("#form"),
  3.     fooVal = $moo.find('input[name="name"]').val();
  4.  
  5. // When you could write this:
  6. var fooVal = $("#form input[name=name]").val();
View raw paste Parent paste by: johan Reply