Skip to content

Commit

Permalink
Adding id attrs for form buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
DiogenesAnalytics committed Mar 7, 2024
1 parent 42c4f50 commit 6a3360f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,14 @@ fetch('config.json')
const send_button = document.createElement('button');
send_button.setAttribute('type', 'submit');
send_button.textContent = 'Send';
send_button.setAttribute('id', 'send_button'); // Add id attribute
form.appendChild(send_button);

// Setup form download button
const download_html_button = document.createElement('button');
download_html_button.setAttribute('type', 'button');
download_html_button.textContent = 'Download Form';
download_html_button.setAttribute('id', 'download_button'); // Add id attribute

// Add event to listen for click
download_html_button.addEventListener('click', () => {
Expand Down

0 comments on commit 6a3360f

Please sign in to comment.