Hello fellas, long time no see. :)
I am getting into jQuery a bit these days, and I was wondering, how do I make a function, which shall be reusable more than once, which shall be making a popup window come up and position itself under the clicked item aligned to the left side of the button?
The site I currently have it on (WiP): http://loyen.comoj.com/index1.html
jQuery code: http://loyen.comoj.com/js/main.js
Currently what the code does is fade in a div when the button "login" is pressed on the site. But I want it to align to the left bottom of the button when pressed, and I also want to make it reusable and not bound to this particular thing. How may I do this the best way?
Thanks for any reply.