Advertisement
martinms

rkpd.js

May 19th, 2024
581
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1. $('#opd').select2();
  2.  
  3. const searchForm = document.querySelector('#searchForm');
  4. const submitBtn = document.querySelector('#submit-btn');
  5. searchForm.addEventListener('submit', (e) => {
  6.     e.preventDefault();
  7.  
  8.     submitBtn.innerHTML = '<i class="fas fa-spinner fa-spin"></i> Memuat...';
  9.     const opd = $('#opd').val();
  10.  
  11.     setTimeout(() => {
  12.         window.location=`${base_url}admin_evaluasi/rkpd/evaluasi/${opd}`;
  13.     }, 1000);
  14. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement