I Have problem with focus input in jQueryUI. I used hover() method on button and it's working, but focus() on input doesn't work. I don't have idea why. Here's code and fiddle
$(document).ready(function(){
$('input[type=text]').focus(function(){
$(this).stop().animate({
backgroundColor: '#000'
}, 1000);
}, function() {
$(this).stop.animate({
backgroundColor: 'rgba(0,0,0,0)'
}, 1000);
});
});
And here's fiddle