1. Law Office of John P. McKenna, P.C. Springfield Injury Lawyer | Amherst Criminal Defense Attorney | Immigration Lawyer Attorney John P. McKenna protects your rights and supports your goals in Western Massachusetts. Call today for a consultation. 413-241-7842.
3. The Law Offices of George E. Bourguignon, Jr. George Bourguignon, Atty - Financial Lawyer | Springfield, MA Protected, enforced, diligent, dedicated, reliable, flexible, competent, variety, prevent foreclosure. Attorney, bankruptcy, slander. Call 413-746-8008.
4. Nicolai Law Group, P.C. Springfield MA Business Law Attorney | Hartford CT Employment Law Attorney | Worcester Massachusetts The Massachusetts business law attorneys of Nicolai Law Group represent companies across the United States. Call 800-577-9201 to schedule a consult.
5. Ross & Ross, P.C. Massachusetts Personal Injury Attorney | Springfield Car Accident Lawyer | Chicopee MA Business Law Ross & Ross is an experienced Springfield law firm that provides trusted legal advice in personal injury, business law, and other legal services for Massachusetts clients.
Enhance your legal case details with LawyerLand AI's
intelligent guidance, connect with numerous qualified law firms in your area, and find the ideal
legal representation through our competitive chat platform.
;
document.addEventListener('DOMContentLoaded', function () {
// Reference to the form elements
const categorySelect = document.getElementById('category');
const subcategorySelect = document.getElementById('subcategory');
if (categorySelect && subcategorySelect) {
// Function to update subcategories based on selected category
function updateSubcategories() {
// Store current selection if any
const currentSelection = subcategorySelect.value;
// Clear existing options
subcategorySelect.innerHTML = '';
// Get selected category
const selectedCategory = categorySelect.value;
// If no category selected, hide subcategory dropdown
if (!selectedCategory) {
subcategorySelect.disabled = true;
return;
}
// Enable the dropdown
subcategorySelect.disabled = false;
// If we have subcategories for this category, add them
if (subcategories[selectedCategory]) {
subcategories[selectedCategory].forEach(function (subcat) {
const option = document.createElement('option');
option.value = subcat;
option.textContent = subcat;
// Set selected if matches current selection or matches the subcategory variable
if (subcat === currentSelection ||
subcat === '') {
option.selected = true;
}
subcategorySelect.appendChild(option);
});
}
}
// Attach event listener to category dropdown
categorySelect.addEventListener('change', updateSubcategories);
// Initialize subcategories on page load
updateSubcategories();
// If category is pre-set, make sure subcategories get populated
}
});