I am using AJAX to return a response which includes a script.
Through that script, how can I determine the ID of the parent element the script is running in without passing id’s to the server? Is there a way?
Thanks.
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.
If you assign an ID to the script (which will explode in ancient browsers), you can try: