how to get html element in .cshtml file

Ddanilwhale9/6/2022
title says all my question
AAngius9/6/2022
Elaborate
Ddanilwhale9/6/2022
what i need to write
Ddanilwhale9/6/2022
code?
Ddanilwhale9/6/2022
oh
AAngius9/6/2022
Elaborate on what do you mean by "get html element in .cshtml file"
Ddanilwhale9/6/2022
like i writing counter which updates every click on button, counter is displaying on paragraph element with id "counterP"
AAngius9/6/2022
You need Javascript or Blazor, then
Ddanilwhale9/6/2022
a
AAngius9/6/2022
Or you need to reload the page each time
Ddanilwhale9/6/2022
second is worst
Ddanilwhale9/6/2022
i think that i can make with c#
Ddanilwhale9/6/2022
eh