This project is read-only.

Binding to anchors or divs

Jan 11, 2013 at 4:02 AM

I know this might be easy but I can't find an answer... how do I link data to a simple anchor or a div container?. I'm only succeeding when binding to a form element like an input

Jan 11, 2013 at 9:15 AM
Edited Jan 11, 2013 at 9:20 AM

Hi luisalberto,

The answer is very simple. You need only to bind data to an other attribute than value ( that is the default element used by jQXB) using the jqxb-bindedattribute directive.


<a jqxb-datasource="myDS" jqxb-datamember="myMember" jqxb-bindedattribute="href"><span  jqxb-datasource="myDS" jqxb-datamember="myMember" jqxb-bindedattribute="html"></span></a>


in the specific see the documentation here