Display title when category is selected

When I select any category, I want its name to be displayed above in the selected section How can I do it with ajax, without refreshing the page?

alt text

Answer 1, authority 100%

JQuery, functions:

click– click event on (repair, painting).

val– get the value from the clicked element.

toggle– show-hide, you can set slow and it will move slowly (beautifully) and also disappear if you remove it.