I am trying to append() a button with an onclick attribute which calls a javascript function:
$('#button').append('<button onclick=setUrlLink(\''+pageN+'\')>Next</button>);
When checking the source code, quotations are missing around pageN, how can I do that?
Why not use Double Quotes