Dear all,
i am using below code to open a link in a new window.
The link is populated by a lookup from my DB.
but the code am using is only opening the first link
can any one help to make code open all links.
see code below:
$(document).on("lookupcomplete", function (event) {
$('.link [type="text"]').each(function(e,el){
var link=$(el).val();
var link2=$(el).val();
link2= "link"
$(el).replaceWith($('<a ="' + link + ' target="_blank" id = "test">' + link2 + '</a>'));
test.onclick = function ShowWindow() {
window.open(link, 'popUpWindow', 'height=300,width=600,left=100,top=30,resizable=Yes,scrollbars=Yes,toolbar=no,menubar=no,location=no,directories=no,status=No');
}
});
});