I have a page in my jQuery Mobile app with two link-based buttons, I want to bind their attributes to ko.observable() objects:
<div data-role="page" id="details">
<div data-role="content">
<!-- ko with: selectedPerson -->
<div>
<h2 data-bind="text: name"></h2>
<a data-role="button" data-bind="attr: { href: phoneLink, title: phone}, text : phone"></a>
<a data-role="button" data-bind="attr: { href: emailLink, title: email}, text : email"></a>
</div>
<!-- /ko -->
</div>
</div>
The problem is that the links don't get rendered as buttons, I see them as simple links.
How can I get jqm and knockout to work together? Do I need to write custom bindings for it?
Thanks