onclick jquery function not working in wordpress header file [duplicate]

What do you mean nothing appears? You probably get redirected to other page (or 404 page). Try to prevent that, using function preventDefault, like this:

https://jsfiddle.net/dzonit/jck9cbnr/

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)