I had the same problem and I was able to get everything to work when I included the correct js files.
<script src="/Scripts/jquery-1.9.1.js"></script> <script src="/Scripts/jquery-ui-1.8.20.js"></script> <script src="/Scripts/jquery.color-2.1.2.js"></script>
I took another step and found a good extension that someone wrote.
jQuery.fn.flash = function (color, duration) { var current = this.css('backgroundColor'); this.animate({ backgroundColor: 'rgb(' + color + ')' }, duration / 2) .animate({ backgroundColor: current }, duration / 2); }
The above code allows me to do the following:
$('#someId').flash('255,148,148', 1100);
This code will make your element blink red and then return to its original color.
Here is a sample code. http://jsbin.com/iqasaz/2
inVINCEble Apr 24 '13 at 22:23 2013-04-24 22:23
source share