1. Crenshaw, Dupree & Milam, L.L.P. Lubbock Insurance Dispute Lawyer | Texas Mineral Rights Attorney | Odessa Midland TX Contact an experienced attorney at the Lubbock, Texas based law firm of Crenshaw, Dupree & Milam, L.L.P. We offer legal services in the areas of commercial litigation, family law and estate planning.
2. Cotton Bledsoe Tighe & Dawson, PC Midland Texas Oil Gas Attorneys | Business Commercial Lawyers | TX For more than 30 years, Cotton Bledsoe has been dedicated to helping individual and business clients achieve their goals. In Midland, Texas, representing clients in Houston and statewide, call 866-721-6665.
3. Zollie C. Steakley, PLLC Sweetwater Attorney | Zollie C. Steakley, PLLC A law firm for all of your legal needs in Sweetwater, Texas. Call 888-900-1428 to schedule a consultation with Zollie C. Steakley, PLLC.
101 East Third StreetPO Box 287 Sweetwater, TX79556
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 === 'Employment Law-Employer') {
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);
}
});