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

380
Vistas
How can I load an URL from a form-button instead of making and clicking a text-link?

I have

jQuery( "#art-calendar-"+infoModalType+"-event-link-url" ).html('<a target="_blank" href="'+calendarEvent.eventLinkUrl+'">'+calendarEvent.eventLinkUrl+'</a>');

in my .js file

and

<button type="button" id="button-1"  type="submit">  
                    Button that loads new page
                    </button>  

in .php file

How can I make a button with custom text, that, onclick, loads a new page instead of showing the url?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

This line had to go into the javascript file:

jQuery('#Termin').attr('action', calendarEvent.eventLinkUrl);

and the next three lines into the PHP file:

<form id="Termin" action="" method="post">
      <button type="submit">jetzt Termin buchen</button>
</form>

The jQuery command adds the calendarEvent + EventURL into the empty action-attribute of the form button called #Termin. This way, the form gets a dynamically produced URL that is being loaded, when clicking the button with the ID Termin.

about 4 years ago · Juan Pablo Isaza 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