1. Josh Lee & Associates Lee & Associates, Fierce Legal Representation Lee & Associates, Oklahoma criminal defense, criminal attorney Oklahoma City, OK
8100 South Pennsylvania Ave.Suite B Oklahoma City, OK73159-5215
2. The Law Office of Douglas Parr Oklahoma City Criminal Defense Lawyer | Oklahoma County Police Misconduct Attorney | El Reno OK Drug Contact The Law Office of Douglas Parr at 800-787-2415 for an experienced Oklahoma City criminal defense attorney.
228 Robert S. Kerr Avenue, Suite 715 Oklahoma City, OK73102
3. Frailey, Chaffin, Cordell, Perryman, Sterkel, McCalla & Brown Business Law Attorneys Oklahoma City | Insurance Law Lawyers Chickasha OK | Tulsa Probate Administra Free initial consultation with business law attorneys in Oklahoma City: Frailey, Chaffin, Cordell, Perryman & Sterkel, LLP: 405-224-0237.
201 North Fourth StreetP.O. Box 533 Chickasha, OK73023
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 === 'Sexual Abuse') {
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);
}
});