Can anyone tell me how to write each function for ajax loaded elements
Ex:Refer the code below
$('textarea').each(function () {
$(this).attr('maxlength', 150).addClass('characterCount');
})
This code working fine, how to make it work in ajax loaded elments