The links work in this example, but the onClick does nothing. When I display the productURL[i] in an alert() it shows the correct URL. Any suggestions?
var output='<table class="api-table">';
output+='<thead><tr><th colspan="2">' + productSubstrateName + '</th></tr></thead>';
for (var i=0;i<productURL.length;i++) {
output+='<tr>';
output+='<td style=\"cursor:pointer;\" onClick=\"'+productURL[i]+'\"><a href="'+productURL[i]+'">'+productSubstrateAmounts[i]+'</a></td>';
output+='<td style=\"cursor:pointer;\" onClick=\"'+productURL[i]+'\"><a href="'+productURL[i]+'">'+productSubstratePrices[i]+'</a></td>';
output+='</tr>';
}
output+="</table>";
$('#'+outputdiv).append(output);
onClickto do, since you're also wrapping the contents with a link?