How can I run some JavaScript after my display template has loaded. I have tried:
AddPostRenderCallback(ctx, function () {
jQuery(document).ready(function () {
alert(jQuery('.ms-srch-hover-subTitle').text());
});
})
but that doesn't work
How can I run some JavaScript after my display template has loaded. I have tried:
AddPostRenderCallback(ctx, function () {
jQuery(document).ready(function () {
alert(jQuery('.ms-srch-hover-subTitle').text());
});
})
but that doesn't work
0 commentaires:
Enregistrer un commentaire