Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

112
Vistas
How to use anchor tag to click on particular span

all sorry for the very basic or maybe a silly question but I was trying to do something which I am not sure, can be done by using an anchor tag or not. After searching over the internet I didn't find any perfect solution for that so here I am writing this question.

Problem - I want to redirect my page from index.php to about.php, and I also want to open one div that can be only visible if we click on it. How to do that using an anchor tag?

I tried - <a href="about#my_div_id"> unfortunately, It didn't work I think maybe because I have to also click on that particular div to make it open. Anyone can please help me out I need some solution to do this. I am using angularJs so if it can be done by that, please help!

about 4 years ago · Santiago Gelvez
1 Respuestas
Responde la pregunta

0

Could you parse the URL in JavaScript on page load, open the div, and set document.documentElement.scrollTop to the position of the div on your page?

Something like:

# On page load:
#   if $parsedURL has $hash:
#     div.show()
#     window.scrollTo(div.position)
about 4 years ago · Santiago Gelvez Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda