bongzilla

Untitled

Mar 19th, 2021
78
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. document.addEventListener("DOMContentLoaded", ready);
  2.  
  3. function ready() {
  4. let elements = document.querySelectorAll('.b-field.b-field__time')
  5.  
  6. for (var i = 0; i < elements.length; i++) {
  7. elements[i].setAttribute("type", "time");
  8. }
  9. }
RAW Paste Data