I am currently attempting to automatically add an anchor, and here is what I have tried:
" <a id='" + x.NomFic + "' onclick='TransfererFica( " +x.Idtran +" , "+ x.NumVdr + " , '" + x.NomFic + "' )'; </a>"
Unfortunately, the issue arises because x.NomFic
is a string. When I click on the anchor, it results in an error. So, my question is how can I pass a string parameter? I attempted to use an integer instead just to test if my code works, and it did. However, when I changed x.NomFic
to accept a string, the code stopped working. Do you have any ideas on how to resolve this issue?