Is It Possible to get the text box position using the javascript
+1
A:
Here is the script
document.getElementById("<textboxId>").offsetTop
document.getElementById("<textboxId>").offsetLeft
Chinmayee
2010-10-06 11:39:19
if i use the script it shows the error "document.getElementById("txtSentto45") is null"
Meena
2010-10-06 12:16:56
Do you have textbox with id txtSentto45 in your page? [please check you might have txtSentto45 as text box name not id]
Chinmayee
2010-10-06 12:38:15
Yes i had the textbox with the id "txtSentto45".Your Code is working Fine . if i run the code means i get replay 2 or 3 ,now i need the exact position .example top =322px. Is It possible
Meena
2010-10-06 13:05:50