1. Alan M. Tanenbaum, P.A. Charleston Personal Injury Lawyer | South Carolina Car Accident Attorney | Summerville SC Workers' C Experienced personal injury lawyer. Contact Alan M. Tanenbaum, P.A., today at 843-722-2588 to speak with a Charleston personal injury attorney.
2. Maybank Law Firm, LLC Nationwide Business Litigation & Personal Injury Defense Attorneys | Charleston SC South Carolin The Maybank Law Firm: Litigation attorneys serving insurance companies and businesses in Charleston, South Carolina and beyond.
3. Svalina Law Firm Personal Injury Attorney | Wrongful Death Lawyer | Beaufort, SC Svalina Law Firm, with offices in Beaufort and Bluffton, South Carolina, advocates for injured parties in personal injury and other disputes. Call 843-524-0333.
4. Lewis Law Firm LLC Lewis Law Firm LLC INJURY LAWYERS SERVING SOUTH & NORTH CAROLINA
The lawyers of the Lewis Law Firm, located in Rock Hill, SC, helped injured people in North Carolina and South Carolina. Our attorneys have over 55 years of combined experience handling personal injury cases, workers’ compensation claims, and medical malpractice cases. We’ve never represented an insurance company. We only represent the injured.
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 === 'Medical Malpractice') {
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);
}
});