1. Cantafio Hammond Denver Litigation Attorneys | Cantafio Hammond Call 720-515-5947 for Cantafio Hammond. Denver law firm with more than 30 years of experience. Mountain values...Urban savvy.
2. Forrest W. Lewis, P.C. Denver Criminal Lawyer | Personal Injury Attorney Denver area criminal defense lawyer Forrest W. Lewis brings 40-plus years of experience to every case. He also handles other legal issues. Call 303-279-3333.
3. Pearman Law Firm, P.C. Pearman Law Firm, P.C. | Wheat Ridge, CO If you need help with a criminal case, family law case or estate planning, Pearman Law Firm, P.C., in Wheat Ridge can help. Call 720-259-9528.
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 === 'Litigation') {
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
setTimeout(function () {
updateSubcategories();
}, 100);
}
});