On my database i have a table product_category, with products from a products table under each product category. I dynamically called out each product category in buttons, with each products under their specific product category on an HTML table. Each table remains hidden at first because of a class 'hide', but with jquery toggleClass, it gets displayed when their specific product category button is clicked on. But each table has buttons that open a modal and whenever i click on any i want that particular products table under it's product category to remain open. + even if i click on a space within the area or on the table itself and not even on a button, it gets closed. How can i restrict it to just the product category button.On my database i have a table product_category,