Its very simple but i don’t see the solution.
How can I put a php var in this twitter bootstrap popup link?
<a href="#myModal" title="Lees meer" value="12345" data-toggle="modal">Read More</a>
And how can i get and print the value of this link in the popup field?
If short tags are enabled:
else:
both indented for readability – don’t do this in actual HTML, it looks messy.
And to get it in jQuery –
.data("variable")automatically gets attributes that start withdata-:or use the
.attrequivalent:and to output in the modal:
JSFiddle demo of the code working