Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

374
Views
¿Cómo puedo cargar una URL desde un botón de formulario en lugar de hacer y hacer clic en un enlace de texto?

tengo

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

en mi archivo .js

y

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

en archivo .php

¿Cómo puedo hacer un botón con texto personalizado que, al hacer clic, cargue una nueva página en lugar de mostrar la URL?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Esta línea tenía que ir en el archivo javascript:

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

y las siguientes tres líneas en el archivo PHP:

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

El comando jQuery agrega calendarEvent + EventURL en el atributo de acción vacío del botón de formulario llamado #Termin. De esta manera, el formulario obtiene una URL generada dinámicamente que se está cargando al hacer clic en el botón con el ID Termin.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!