roanjain
roanjain

Reputation: 1252

add hyperlink to kendo ui k-button?

I'm using kendo ui menu widgets from the web package of kendo ui. There is a problem in hyperlink the k-button is not working with an hyperlink inside.

<button class="k-button">
    <a href="http://localhost:5724/map.html">
        <font color = 'black'>See All Centers
    </a></font>
</button>

the button does not even responding an error: it is behaving as if there is no hyperlink attached with button.

Upvotes: 4

Views: 10365

Answers (1)

OnaBai
OnaBai

Reputation: 40887

An anchor can directly be formatted as a button by simply adding class="k-button"

You should define it as:

<a href="http://localhost:5724/map.html" class="k-button"><font color = 'black'>See All Center</fonts></a>

BTW: The tags in your HTML example are not correctly balanced. Also consider using style attribute instead of fonts.

Upvotes: 8

Related Questions