BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   enable/disable objects with javascript (http://www.blackberryforums.com/developer-forum/160662-enable-disable-objects-javascript.html)

elDiego 11-21-2008 07:27 AM

enable/disable objects with javascript
 
Hello

I have the following problem. I'm developing a very simple javascript page. There area a few checkboxes, and when the user checks/uncheks them a function has to enable or disable some radio buttons, which area disabled when the page is loaded.

The problem is that I can't change the value of the disabled property of the radio buttons when I use Blackberry Browser, although it does work when I use IE 7 or Firefox 3.0.4.

The piece of code I use to enable/disable the radio buttons is this:

var divAprobacion = document.getElementById("aprobacion");
var x = divAprobacion.getElementsByTagName("input");
for (j = 0; j < x.length; j++)
{
x[j].disabled = true;
for (l = 0; l < matIDTemp.length; l++)
{

if (x[j].value == matIDTemp[l]){
x[j].disabled = false;
}
}

}

I tried changing other properties and that works, it seems that only disabled can't be changed.

Does somebody know any kind of solution to this?

Thanks


All times are GMT -5. The time now is 05:43 AM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.