1. Warner Law Offices PLLC Personal Injury Attorneys | Warner Law Offices, PLLC Need a personal injury attorney who will focus on YOUR best interests? Call Warner Law Offices at 304-881-0641. Rated Superb, Best and Top Attorneys in WV.
2. Wilson, Frame & Metheney, P.L.L.C. Morgantown Personal Injury Lawyer | West Virginia Wrongful Death Attorney | Medical Malpractice For an experienced West Virginia personal injury attorney, contact Wilson, Frame & Metheney, P.L.L.C., by calling 304-292-9429.
3. Manchin Injury Law Group Fairmont West Virginia Personal Injury Attorney If you have been injured in an accident, take action and contact a personal injury attorney at our West Virginia law office by calling (304) 367-1862.
4. Manchin Injury Law Group West Virginia Personal Injury Attorney | Fairmont If you have been injured in an accident, take action and contact a personal injury attorney at our West Virginia law office by calling (304) 367-1862.
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 === 'Construction 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);
}
});