Making a Link Appear if a Condition is Met
- by John
Hello,
The PHP code below echoes a link if the "loginid" of the logged-in user is on a list determined by getEditorList();. It works fairly well, but I think it might work better if I were to do it with Javascript instead.
How could I accomplish the same thing with Javascript?
Thanks in advance,
John
$editors = getEditorsList();
…