Disable/enable an input with jQuery?


Which is the standard way? And, conversely, how do you enable a disabled input? jQuery 1.6+ To change the disabled property you should use the .prop() function.

jQuery 1.5 and below The .prop() function doesn’t exist, […]

Change an HTML5 input’s placeholder color with CSS

Chrome supports the placeholder attribute on input[type=text] elements (others probably do too). But the following CSS doesn’t do diddly squat to the placeholder’s value:

Value will still remain grey instead of red. Is there a way to change […]