Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript CSS transitions don't work on newly appended elements. Reply To: CSS transitions don't work on newly appended elements.

#177766
__
Participant

Don’t know if you figured this out yet…

If you want to name the function, define it elsewhere and reference the name:

function phoneCheck(){ 
    /*  stuff here  */ 
}
$(document).on( 'input', '.phone', phoneCheck );

otherwise, make it an anonymous function:

$(document).on( 'input', '.phone', function(){
    /* do phoneCheck stuff  */
} );