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.

20 line
567B

  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. $("#resource_type").change(function() {
  13. var $ = jQuery.noConflict();
  14. var resource_type = $(this).val();
  15. $(".resource_type_input").hide("fast", function() {
  16. $("#resource_type_" + resource_type).show("slow");
  17. });
  18. });