Everyone is welcome to come to the May Day March in Newcastle. This Saturday 3rd of May at 10am. Meet us in the car park opposite the Sydney Junction Hotel. (Next to the Hamilton Train Station). We will be marching down Beaumont Street and finishing in Gregson Park, Hamilton.
document.addEventListener('DOMContentLoaded', function() {
// Adjust the selector if you have multiple forms
const form = document.querySelector('.elementor-form');
if (!form) return; // Stop if no form found
// Get the BSB field by Field ID
const bsbField = form.querySelector('#bsb'); // #bsb = Field ID from Step 1
if (!bsbField) return;
form.addEventListener('submit', function(e) {
const bsbValue = bsbField.value.trim();
const regex = /^\d{3}-\d{3}$/; // Matches 000-000 format
if (!regex.test(bsbValue)) {
alert('Please enter a valid BSB in the format 000-000');
bsbField.focus();
e.preventDefault(); // Stop form submission
}
});
});