1. NOVA IP Law, PLLC Intellectual Property, Business and Corporate Law | Northern VA NOVA IP Law is an intellectual property, business and corporate law firm helping clients obtain and enforce trademarks, copyrights and patents.
7001 Heritage Village PlazaSte. 205 Gainesville, VA20155
2. The Law Offices of Robert J. Barlow, P.L.C. Fredericksburg Bankruptcy Lawyer | Dale City Debt Relief Attorney | Orange Chapter 7 Bankruptcy Lawy Protecting your rights since 1991. Contact the Law Office of Robert J. Barlow, in Fredericksburg, Virginia, for a free initial phone consultation.
3. Coates & Davenport, P.C. Richmond Criminal and Family Law Attorney | Chesterfield Bankruptcy County Attorney | Henrico County Representation for all your legal problems. Call the respected Richmond law firm of Coates & Davenport at 804-285-7000.
4. The Law Offices of Robert J. Barlow, P.L.C. Fredericksburg Bankruptcy Lawyer | Dale City Debt Relief Attorney | Orange Chapter 7 Bankruptcy Lawy Protecting your rights since 1991. Contact the Law Office of Robert J. Barlow, in Fredericksburg, Virginia, for a free initial phone consultation.
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 === 'Franchising') {
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);
}
});