1. Allen Law Firm Abilene Personal Injury Attorney | Allen Law Firm Call West Central Texas personal injury insurance litigation attorney Greg Allen at Allen Law Firm in Abilene at 325-267-3486 for a free consultation.
2. Allen Law Firm Abilene Personal Injury Attorney | Allen Law Firm Call West Central Texas personal injury insurance litigation attorney Greg Allen at Allen Law Firm in Abilene at 325-267-3486 for a free consultation.
3. The Burnett Law Firm Abilene Personal Injury Lawyer | Burnett Law Firm Personal injury firm with locations in Abilene, Dallas and Eagle Pass. Contact The Burnett Law Firm for a free attorney consultation.
4. Law Office of Harold White Wichita Falls Personal Injury Lawyer | North Texas Medical Malpractice Attorney | TX Brain Injuries Call 940-692-5000 for a free consultation with personal injury lawyer Harold White in Wichita Falls. No fees upfront.
5. The Law Offices of Randall D. Moore, PLLC Fort Worth Personal Injury Lawyer | Car Accident Attorney Fort Worth attorney Randall D. Moore offers a free consultation to personal injury victims: Call 817-717-5245.
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 === 'Rollover 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);
}
});