Функция prop()

by fersterin

HTML

<script src="https://code.jquery.com/jquery-2.2.4.js"></script>
<input type="text">
<input type="text">
<input type="text" disabled>
<input type="text" value="sdsdsdsd">
<input type="text" disabled>
<button>Сбросить</button>

CSS

.cat {
	background: white;
}
.dog {
	color: blue;
}
input[disabled] {
	background-color: #ffff00;
}

JavaScript

$("button").click(function(){
	$("input").prop("disabled", false);
	//Отключить атрибут disabled (удалить)
});