blackberry / BB10-WebWorks-Framework

The BB10 WebWorks Framework is packaged within an application BAR file to run on a BB10 device (or simulator)
60 stars 34 forks source link

Not able to change checkbox checked value - no visible effects #647

Open 26filip opened 11 years ago

26filip commented 11 years ago

I try to change checkbox checked attribute using JavaScript code:

$('input[name=Test]').attr('checked', false);

On Chrome with disabled Ripple emulator, those code works fine, but on Ripple and Z10 not...

ejzn commented 11 years ago

This is a jQuery issue by the looks of it. Please direct issue such as this to the forum. Thanks!

26filip commented 11 years ago

I'm not sure, that its jQuery issue - when I run this code in normal web browser, everything works fine. On Ripple and Z10 also work, but only in logic:

$('input[name=Test]').attr('checked', false); if($('input[name=Test]').is(':checked')) alert('A'); else alert('B');

it return alert('B')

ejzn commented 11 years ago

I guess what I'm implying is perhaps the attr('checked', false); does not work on the Z10, but that would not be a Z 10 issue. That would be a jQuery bug not working on the Z10.