如何绑定单击可折叠集的一个元素?
<div data-role="content">
<div data-role="collapsible-set" data-theme="d" data-content-theme="d">
<div data-role="collapsible" id="expand">
<h3>header</h3>
</div>
</div>
</div>
尝试这个:
$(document).on('click', '#expand', function (e) {
e.stopImmediatePropagation();
e.preventDefault();
console.log('ekb'); // my stuff
});
演示:http: //jsfiddle.net/pExFF/3/