Hi, I found the below JS for accordion menu on hover. I would like to use it but afraid that it might not be safe. I read somewhere that using the eval((function() might open up your code for injection attacks. Is it safe to use the below code or is there any better script without jquery that i can use? thx.
Improper use of eval could open up the possibility of injection attacks, mainly if you use user input in the eval code and just assume the input is safe. (To build a secure application you should always assume every user is the worst hacker! Just a note.) But that doesn't happen here so I'd say the script is safe to use.
Bookmarks