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

176
Views
Unable to edit input text inside a modal when using introjs

I have a bootstrap modal that includes input text. I've added the input text to introJs steps to highlight it and for the user to be able to input their name etc. But once the input text was highlighted, I'm not able to change its values. Maybe because they are the same modal? Its working if the input text is not on a popup modal.

Here are some sample script.

<div class="modal fade" tabindex="-1" role="dialog" id="addModal">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title">Modal Title</h4>
      </div>

      <form role="form" action="#" method="post" id="createForm">
        <div class="modal-body">
          <div class="form-group">
            <label for="brand_name">Name</label>
            <input type="text" class="form-control" data-step='add_name' id="name" placeholder="Enter Name">
          </div>
            <div class="modal-footer">
              <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
              <button type="submit" class="btn btn-primary">Save changes</button>
            </div>
          </div>
        </div>
      </form>
    </div>
  </div>
</div>





const intro = introJs();

intro.setOptions({
  doneLabel: 'Next',
  exitOnOverlayClick: false,
  steps: [
    {
      intro: 'Enter you name',
      element: '#name',
    }
  ]
})
if (RegExp('multipage', 'gi').test(window.location.search)) {

  intro.start().onchange(function(targetElement) {
    if ($(targetElement).attr("data-step") == 'add_name') {
      $("#addModal").modal('show');
    }
  }));
}
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!