1. O'Brien, Thomas & Bibik, LLC Denver Criminal Defense Lawyers | Lakewood Criminal Law Attorneys | Arvada CO Domestic Violence Lawy If you have been charged with a crime, you need aggressive representation. Contact an attorney at our Lakewood law firm by calling 303-578-4149.
12600 West Colfax AvenueSuite C400 Lakewood, CO80215
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.
4. Hull & Zimmerman PC Hull & Zimmerman | Northglenn Personal Injury Attorneys Hull & Zimmerman provide experienced, personalized legal help. Their Northglenn personal injury attorneys can help you get compensation for your injuries.
5. FleschLaw Denver Personal Injury Attorney | Car Accident Lawyers Englewood The Denver personal injury lawyers of FleschLaw stand up to the insurance companies to maximize your compensation. Free consultation: 720-689-0322.
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 === 'Motorcycle Accident') {
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);
}
});