1. Magleby & Greenwood, P.C. Salt Lake City Complex Litigation Lawyer | Utah Intellectual Property Litigation Attorney | Park Cit Utah civil litigation, intellectual property, real estate and construction litigation law firm. Practical solutions for complex issues. 866-928-7962.
170 South Main StreetSuite 1100 Salt Lake City, UT84101
2. Ascione & Associates, L.L.C. Orem Business Law Lawyer | Provo Fraud Attorney | Ascione Law The Orem business law lawyers at Ascione Law handle business litigation and other legal matters. Call 801-679-4381 for a consultation.
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.
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 === 'Securities') {
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);
}
});