Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9239137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:55:04+00:00 2026-06-18T07:55:04+00:00

Here is my html code <li id=liButton_1 tabindex=2 class=activeli> <a onclick=ShowVideo(‘1’);> <img id=ImageButton_1 title=Sister

  • 0

Here is my html code

<li id="liButton_1" tabindex="2" class="activeli">
<a onclick="ShowVideo('1');">
    <img id="ImageButton_1" title="Sister Teresa's Talk (Malayalam)" alt="Sister Teresa"
    s="" talk="" (malayalam)
    '="" src="http://www.braddockinfotech.com/demo/dvnonline/vod/timthumb/timthumb.php?src=wp-content/uploads/2012/11/Sr.-Teresa.jpg&amp;h=54&amp;w=109&amp;zc=1&amp;a=c" class="active"></a></li>

Ok when this li is selected it is accessed like document.activeElement.
How to select the id of the img inside the li using document.activeElement.(some thing)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T07:55:05+00:00Added an answer on June 18, 2026 at 7:55 am

    If u got the li reference as active element

    var activeEle = document.activeElement;
    var imageID = activeEle.getElementsByTagName("img")[0].getAttribute("id");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my HTML code: <ul id=gallery> <li id=attachment-32 class=featured><a href=... title=><img src=... alt=
Here is the html code <div id=slider class=images> <img src=img/image1.png height=200 width=200> <p>Image1 corresponding
Here is html code, <li class=comment-content> Target String!!! <span class=comment-time>2011-07-13 17:08:39</span> <a title=comment class=bottoml
Here is my html code <li class=current title=some title data-atype=some type data-aid=119697371285186601> Some text
Here is my HTML code that is generated by PHP. <p id=resp19 class=resp> <img
A seen in the title, here the HTML Code example: <body> <!--CODE_START--> <p>I <strong>Want</strong>
Here is HTML code: <div class=row> <span class=item><a href=#>A</a></span> <span class=item><a href=#>B</a></span> <span class=item><a
Here is html code snippet <li style=opacity: 1;> <a id=LinkDisplay class=optionsDropDown style=color:#FF0000;display:none href=javascript:showThisLink('LinkId');> </li>
Here is my html code: <!DOCTYPE html> <!-- test app --> <html> <head> <title>jQuery
Here is my html code. <table > <tr> <th rowspan=3> <h:selectOneRadio layout=pageDirection onClick=alert('selam') id=selectOneRadio>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.