SO - 20809771
by Arun P Johny
HTML
<form id="myForm">
<input />
<input />
<input />
<button type="button">Test</button>
</form>
CSS
.blink-class {
border: 1px solid #ee1b1b !important;
}
JavaScript
$('button').click(function () {
var $els = $(':input', '#myForm').not(':button, :submit, :reset, :hidden');
$els.fadeOut(550).promise().done(function () {
$els.toggleClass("blink-class").fadeIn(550);
});
})