Disable Plugin
by shapeshifta
HTML
<form id="test">
<input type="text"/><input type="text"/><input type="text"/><input type="text"/>
</form>
JavaScript
$.fn.disable = function() {
if(this.disabled == null){
return this.each(function() {
this.disabled = true;
});
}
};
$('#test input[type="text"]').disable();