Jump to content

Disabled = true doesn't work


unemployment

Recommended Posts

once I toggle the select all button on it enabled the another button, but once I toggle the select all button often it doesn't disable my other button.

 

function selectall (pm) {
var messages= document.getElementById('pm');
 if (checked == false)
          {
           checked = true;
           document.getElementById('multiple_action').disabled = 'enabled';
	   document.getElementById('drop_button').setAttribute("class", "drop_button");
          }
        else
          {
          checked = false;
          document.getElementById('multiple_action').disabled = true;
          }
for (var i =0; i < messages.elements.length; i++) 
{
 messages.elements[i].checked = checked;
}
}
checked=false;

Link to comment
https://forums.phpfreaks.com/topic/225921-disabled-true-doesnt-work/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.