1. Atticus Legal Group, LLC Salt Lake City Family Law Attorney | Divorce & Custody | Atticus Legal Group, LLC At Atticus Legal Group, LLC, in Sandy, Utah, we work hard to be the last attorneys you will ever need. For a free consultation, call 801-784-0529.
2. Lokken & Associates Call Salt Lake City, UT Family Law Attorneys Today At Lokken & Associates, P.C., your needs come first. Call our family law attorneys in Salt Lake City, UT for further information & a free consultation.
6740 South 1300 EastSuite 225 Cottonwood Heights, UT84121
3. Evanson Weber, PLLC Lehi Business Attorney Turn to Evanson Weber for skilled representation that is dedicated to helping you secure the outcome you need to your legal matter. Call 801-653-0385.
4. Raymond B. Rounds, Attorney at Law Utah Divorce Lawyer | Ogden Family Law and Custody Attorney Do you need expert legal advice on taxes, estate planning, business organization, family, or immigration law?
2650 Washington BoulevardSuite #102 Ogden, UT84401
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 === 'Collaborative Law') {
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);
}
});