javascript - How to change this title depending on the selected filter values

one text

Please tell me the site on wordpress woocommerce, I use the woobewoo plugin for filtering. This plugin, when filtering is selected, outputs products via ajax and passes the values to the url. http://joxi.ru/nAylVwPT9KXEe2

How to change this title depending on the selected filter values, that is, if the chandelier category is selected, you need to display chandeliers, if the lamps are then the lamps. Also how to display the number of products corresponding to the current filter settings. It should be displayed here http://joxi.ru/4AkXbYPCjZMzGr

I don't know how to do it yet

Source