1. Gregory L. Bernhardt Law Office Law Firm Gregory L. Bernhardt Law Office Attorneys Wichita Kansas Lawyers The Gregory L. Bernhardt Law Office provides dedicated legal representation to clients in the Wichita, Kansas area in the practice areas of criminal defense, family law, divorce, probate, estate administration and unemployment insurance appeals. For more information, call 316-264-1900 today.
3. Adrian & Pankratz PA Adrian & Pankratz Attorneys at Law - Newton Kansas Lawyers Adrian & Pankratz, P.A. has over 40 years of experience as a full service firm, handling the needs of clients in a variety of legal settings
301 North Main StreetSuite 400 Newton, KS67114-3464
4. Wiechman & Gasper, P.A. Topeka Bankruptcy Attorney | Divorce Lawyer | Business Law Call 785-379-6642 to schedule a free consultation with Wiechman & Gasper, P.A., in Topeka, Kansas. Practicing bankruptcy, family law, business law and more.
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 === 'Contracts') {
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);
}
});