2016-10-22 3 views
0
$('.form-control').on('focus blur', function (e) { 
    $(this).parents('.form-group').toggleClass('focused', (e.type === 'focus' || this.value.length > 0)); 
}).trigger('blur'); 

$('#moveleft').click(function() { 
    $('#textbox').animate({ 
     'marginLeft': "0" //moves left 
    }); 
    $('.toplam').animate({ 
     'marginLeft': "100%" //moves right 
    }); 
}); 

$('#moveright').click(function() { 
    $('#textbox').animate({ 
     'marginLeft': "50%" //moves right 
    }); 
    $('.toplam').animate({ 
     'marginLeft': "0" //moves right 
    }); 
}); 
+2

です –

答えて

0

存在しないイベント "フォーカスブラー"に接続しようとしています。

それはどちらか.on("focus", function(e) { });

であるか、それはHTMLのサンプルがある.on("blur", function(e) { });

https://jsfiddle.net/kt0sswfh/

関連する問題