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

183
Views
Intro.JS posible verificar la entrada del usuario antes de continuar

Entonces, quiero salir con el Javascript que obligó al usuario a ingresar / seleccionar cualquier cosa antes de ir al siguiente paso (como obligar al usuario a presionar el botón, ingresar su nombre, etc.). Estoy trabajando en Django Framework con una mezcla junto con Javascript y HTML juntos.

Ignore la primera parte ya que estoy tratando de asignar cada función al botón para que el botón pueda realizar diferentes tareas individualmente. Pero no funcionará en el script intro.js. El fragmento de código está a continuación:

 <script> /* var btn1=document.getElementById("button1"); var btn2=document.getElementById("button2"); var div=document.getElementById("InputName"); btn1.onclick=function(){ if (div.style.display !=="none") { div.style.display="none"; } else { div.style.display="block"; } }; // this is the crucial part btn2.onclick=function(){ var steps=[ {element:"#button1",intro:"A button", position:"right"}, {element:"#button2",intro:"This goes away sometimes"} ]; if (div.style.display==="none") { steps.splice(1,1); } introJs().setOptions({ steps:steps }).start(); } */ var steps=[ {element:"#InputName",intro:"Please fill your name", position:"right"}, {element:"#InputUsername",intro:"Please fill your username"}, {element:"#button1",intro:"Succesfully Filled, press register."} ]; introJs().setOptions({ steps:steps }).start();
about 4 years ago · Juan Pablo Isaza
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!