Can anyone help me to pass parameters dynamically in a Javascript function inside an anchor tag?

My code :

<td><a href="javascript:displayPaymentInfo('"\+POId+\"###${invoiceDetails.InvoiceId}');" style="color:black">${invoiceDetails.InvoiceId}</a></td>