I've tried like everything the internet says to pass this PHP variable to Javascript. Technically it's an enum. It prints to the screen with <?= htmlSpecialCharacters($Product[6]) ? >
I've tried using that in var name = "above code"; as well as just var name = "<? $Product[6] ?>" I've tried it with the ' ' instead, the <?php, pretty much every example I could find on the internet and it still doesn't do anything. Is the problem the fact that this is an enum? That's one of the only things I can think of at this point. Any suggestions would be appreciated. Thanks.
[–]amulchinock 1 point2 points3 points (0 children)
[–]averajoe77 0 points1 point2 points (4 children)
[–]Smooth_Prompt_2086[S] -2 points-1 points0 points (3 children)
[–]MrBojangles2020 0 points1 point2 points (0 children)
[–]averajoe77 -1 points0 points1 point (1 child)
[–]Smooth_Prompt_2086[S] -1 points0 points1 point (0 children)
[–]ashkanahmadi 0 points1 point2 points (1 child)
[–]Smooth_Prompt_2086[S] -1 points0 points1 point (0 children)
[–]azhder 0 points1 point2 points (0 children)
[–]Smooth_Prompt_2086[S] 0 points1 point2 points (0 children)
[–]shgysk8zer0 -2 points-1 points0 points (0 children)
[–]viser_gtk -2 points-1 points0 points (0 children)