1. Kristina Voorhies Legan El Paso Family Law Attorney | West Texas Child Custody Lawyer | Fort Bliss TX Military Divorce El Paso, Texas, family law lawyer. Call 915-603-3855 or 877-336-7450 for a consultation with the Law Office of Kristina Voorhies Legan.
2. M. J. Hill & Associates, PLLC San Marcos Family Law Attorney | Hays County Divorce Agreement Lawyer | Kyle Texas Modifications M. J. Hill & Associates, PLLC, in San Marcos, Texas, has extensive experience in divorce and family law matters. Call 512-212-4916 to speak with an attorney.
3. Law Office of Jeffrey R. Gilbert, P.C. Angleton Criminal Defense Attorney | Brazoria County DWI and Drug Charge Lawyer Contact a criminal defense and family law lawyer at the Law Office of Jeffrey R. Gilbert, P.C., at 979-319-5060 in Lake Jackson.
4. Law Office of Michael D. Tracton, P.C. Sugar Land Divorce Lawyer | Fort Bend County Family Attorney | Houston The Law Office of Michael D. Tracton, P.C., in Sugar Land, Texas, protects people's rights in divorce and all family law matters. Call 281-201-1481.
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 === 'Same Sex') {
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);
}
});