It is not possible to disable an element using CSS only, but you can create a style that will apply to disabled elements:
<style>
#retention_interval_div input[type="text"]:disabled {
color : darkGray;
font-style: italic;
}
</style>
Then in your code you just need to say:
$('#retention_interval_div :input').prop("disabled", true);
: http://jsfiddle.net/nnnnnn/DhgMq/
(, :disabled CSS .)
, jQuery >= 1.6, .prop() .attr(), .
, , , , - . , :
$('#retention_interval_div :input').addClass("disabled").attr('disabled', true);