What is the correct way to bind a click / vclick event to a button in JQueryMobile?
I've tried using $().bind("click", function(){});
and $().on("click", function(){});
but i never got a response from the console.
I have my buttons set up like this in my index.html:
EDIT
<div data-role="page" data-title="OneStop Mobile" class="ui-responsive-panel" id="homepage">
<div data-role="panel" data-dismissable="false" id="optionsPanel">
<div>
<ul data-role="listview">
<li> <a href="#" id="store">store</a> </li>
<li> <a href="#" id="download">Download</a> </li>
<li> <a href="#" id="check">Check</a> </li>
<li> <a href="#" id="clear">Clear</a> </li>
<ul>
</div>
</div>
</div>
and I'm binding it like this in my index.js:
$("#store").bind("click", function(event, ui) {
console.log("WORK DAMNIT!")
});
This should work, according to the JQMobile api and demo pages, but i never see anything happen on my device or in a browser.