I am trying to fire this jQuery function when an ajax load completes, can anyone tell me why it won't fire?
jQuery( document ).ajaxComplete(function( event,request, settings ) {
$('.testme').each(function () {
var myhtml = $(this).text().split(' ')[0];
var ele = $(this);
$('.pickme').each(function(){
myhtml == $(this).text().split(' ')[0] ? $(ele).css('display','block') : ""
})
})
});