Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .toggleClass not working with .live
- $(document).ready(function(e) {
- $(this).live('focusin, blur', function() {
- $(':input[type="text"]').bind('focusin blur', function() {
- $(this).toggleClass('fieldFocus');
- })
- });
- });
- $(':input[type="text"]').bind('focusin blur', function() {
- $(this).toggleClass('fieldFocus');
- });
- $(document).ready(function(e) {
- $(':input[type="text"]').live('focusin blur', function() {
- $(this).toggleClass('fieldFocus');
- });
- });
- });
- $(':input[type="text"]').live('focusin blur', function() {
- $(this).toggleClass('fieldFocus');
- });
- $(document).on('focusin focusout', ':text', function(){
- $(this).toogleClass('fieldFocus');
- });
- $(':text').live('focusin blur', function() {
- $(this).toggleClass('fieldFocus');
- });
- $(this).live('focusin focusout')
- $(this).live('focusin, focusout')
Add Comment
Please, Sign In to add comment