I have a jQuery Mobile Beta 1 site with a jQuery 1.6.1 link button as follows:
<a id="subselection" href="#" data-role="button" data-theme="b">TEST</a>
And in document.ready I set the click event:
$('#subselection').livequery("click", function(){ alert('test'); });
I want to disable this "link" and I tried
$('#subselection').button('disable')
And this command sets the button style as if it was disabled, but the click event works.
I also tried
$('#subselection').prop('disabled', true);
and $ ('# subselection'). prop ('disabled'); gives true but does not turn off.
Someone has a good idea.
javascript jquery jquery-mobile mobile
RickardP Jun 22 '11 at 10:52 2011-06-22 10:52
source share