jQuery vs. CSS

by Kyle Mitofsky

HTML

<input type="text" class="disabled one" Value="one"/>
<input type="text" class="disabled two" Value="two"/>

CSS

input.disabled.two {
    pointer-events: none;
    color: gray;
}

JavaScript

$('input.disabled.one').css({
    'pointer-events':'none',
    'color': 'gray'
});