This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I been making a popup validation callout. I got it to implement it properly when the user clicks the submit button. However I am trying to use the same function to make a validation callout over my textbox.
When I leave that textbox with a invalid number(say 0) it popups up the callout but far away. I don't understand why though.
So is there something that gets the position of the control and not the mouse?
Here is my code so you can see any example. You just need to put your own jquery file in it.
Also I don't understand why but if you run my code in IE(I am using 7) and you try to enter something invalid in the textbox and leave an error will be displayed.
I forgot to mention the reason why there are so many breaks is that I wanted to show you about's where the position of that box is on my real website(written in asp.net).
I found something that seems to work but I don't understand fully what is going on. Can someone help me understand.
I already did a couple of my own tweaks to make it work.
First I don't know how to change this: document.getElementById(id) to a jquery selector. I tried to do this