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

210
Views
loading animation function button, but form won't submit

i made a loading animation function with spinner the animation is work perferctly except when i used function class for submit button, my form wont submit

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<form method="post" action="xxx">
  <input class="form-control" type="date" id="tgl_start" name="tgl_start" required>
  <input class="form-control" type="date" id="tgl_end" name="tgl_end" required>
  <button type="submit" class="link_load"> Go </button>
</form>

<script>
  $(document).ready(function() {
    $('.link_load').on('click', function() {
      $(this).prop("disabled", true);
      $(this).html('<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span> Loading...');
    });
  });
</script>

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!