1. Law Offices of Magnuson Lowell P.S. Bellevue Family Law Attorney | Redmond Criminal Defense Lawyer | Woodinville Divorce Attorneys Contact a Bellevue family law, personal injury and criminal defense lawyer from Magnuson Lowell, P.S. Call 425-242-4021 to schedule a free consultation.
2. Reinig, Barber & Henry Kennewick Washington Car Accident Attorney | Pasco Personal Injury Lawyer | Richland Medical Malprac Suffered a personal injury? The Kennewick, Washington, car accident lawyers of Reinig, Barber & Henry can help you seek compensation. Call 509-735-0535.
3. Quiroga Law Office, PLLC Spokane Bankruptcy Attorney | Lawyer (509) 560-7050 A Spokane bankruptcy attorney can help you, but only if you qualify for relief under the bankruptcy code. Most debt can be completely erased with the filing of the proper paperwork to the Federal...
505 North Argonne RoadSuite B-109 Spokane Valley, WA99212-2870
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 === 'Bad Faith Insurance') {
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);
}
});