You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
550B

  1. // document.addEventListener('DOMContentLoaded', e => {
  2. // htmx.logAll();
  3. // let as = document.querySelectorAll('a');
  4. // as.forEach(a => {
  5. // a.addEventListener('click', ee => {
  6. // ee.preventDefault();
  7. // })
  8. // })
  9. // })
  10. // htmx.logAll();
  11. // Dynamic HTML forms based on dropdown menu
  12. $(document).on("change", "#resource_type", function() {
  13. var resource_type = $(this).val();
  14. $(".resource_type_input").hide("fast", function() {
  15. $("#resource_type_" + resource_type).show("slow");
  16. });
  17. });