I am trying to bind a uniqid()
to an onclick
event in a string:
$UniquepreID = uniqid();
$selectbutton = '<input type="button" value="testabc"
onclick="selectElementContents( document.getElementById("$UniquepreID") );" />';
The $UniquepreID
is parsed literally. How can I make this work correctly?