I have an empty controlgroup, which I want to populate with buttons. Can't get it to work.
This is the controlgroup:
var $wrap = '<div class="wrap"><div data-role="controlgroup"></div></div>';
This is the button:
var $btn = '<a href="#some" data-role="button">Click</a>'
I want to do something like this:
$wrap.append( $btn );
But it's not working.
Can someone tell me what I'm doing wrong? I think $wrap is just a string, so I cannot call append on it. If so, how do I do it correctly?
Thanks for help!