Home › Forums › JavaScript › CSS transitions don't work on newly appended elements. › Reply To: CSS transitions don't work on newly appended elements.
August 5, 2014 at 11:51 am
#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 */
} );