> It seems more intuitive and consistent than: > > $('#foo')[0].className; > $('#foo')[0].size; > $('#foo')[0].type;
If you're repeatedly accessing the first DOM object of a jQuery selector array, it's a good practice to set a variable: var myObject = $('#foo')[0]; ..then you can access DOM properties like you're used to doing, & also save the browser from the duplicate object lookups: myObject.className myObject.size myObject.type -Wick CarComplaints.com