Вопрос

I am building a html table inside my JS code and I need to have something like

<a href="link goes here">click on me</a>

The inside of the a href needs to point to a controller action. The question is how do I do inside my JS?

Это было полезно?

Решение

You can just add the controller and action to the href.

<a href='/ControllerName/ActionName'>click</a>
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top