1. The Hughes Law Firm Houston Personal Injury Attorney | Hughes Law Firm | Harris County and Surrounding Areas Personal injury lawyers at The Hughes Law Firm in Houston understand what you are going through. For a free consultation, call 281-407-8170.
2. Gilbert & Furey Angleton Personal Injury Lawyer | Business, Family Law, Criminal Law A half century of legal excellence. Call GILBERT & FUREY in Angleton, Texas, at 979-849-5741.
3. Basham & Scott, LLC Brunswick ME Family Law Lawyer | Portland Maine Criminal Defense Attorney For experienced, results-oriented family law or criminal defense in Maine, contact the Brunswick lawyers of Basham & Scott LLC at 207-209-2325 today.
4. Woods Law Firm, P.C. Houston Personal Injury Lawyer | Woods Law Firm, P.C. | Malpractice Lawyer | Vagina Mesh Lawsuit | C Call the Woods Law Firm, P.C. in Houston, TX at 713-651-1115 (local), 713-574-5190 (local) or 1-877-720-6925 (toll free) about your personal injury case.
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 === 'Slip and Fall 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);
}
});