2. The Law Firm of Tom A. Peterson IV, LLC Vidalia Criminal Defense Attorney | Statesboro GA Personal Injury Lawyer | Hinesville Georgia DUI La Contact The Law Firm of Tom A. Peterson IV, LLC, in Vidalia, Georgia, to discuss your criminal defense or personal injury case by calling 912-386-4306.
104 Southwest Main StreetP.O. Box 2037 Vidalia, GA30474
4. Moore Clarke DuVall & Rodgers, P.C. Georgia Business Law Attorneys | Moore Clarke DuVall & Rodgers, P.C. Call Moore Clarke DuVall & Rodgers, P.C., at 229-245-7823 for an experienced Georgia business attorney.
2829 Old Dawson RoadP.O. Drawer 71727 Albany, GA31707
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 === 'Landlord-Tenant') {
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);
}
});