Hi Team,
I have made a copy of Item_Default.html and I want to modify the title href and onclick for each result item being displayed.
Already added code in
AddPostRenderCallback(ctx, function() {
$(".ms-srch-item-link").each(function() {
var x = $(this)[0];
$(x).attr('onclick', '#');//need to open pop up here
});
});but when I inspect the result item, the onclick has value javascript:void(0);
I am able to set href="#" but unable to override onclick
In search results I have calendar items, and on click of the title need to open pop up here but somehow the onclick value gets updated with javascript:void(0);
Thanks in Advance, Jiniv Thakkar