I am using jquery in my php web page. I want to find the location of a textbox or button in a page. Please give me a sample jquery to find this. Please provide with any suggestions u have. Thanks in advance.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
See jQuery Offset. It get the current offset of the matched element, in pixels, relative to the document.
See also: selector/text and selector/button
Use Firebug. It also add a global variable named “console” to all web pages loaded in Firefox. In this case “console.log” writes a message to the console.