unemployment Posted January 28, 2011 Share Posted January 28, 2011 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 More sharing options...
sunfighter Posted January 30, 2011 Share Posted January 30, 2011 What other button? You should show us what you mean. Link to comment https://forums.phpfreaks.com/topic/225921-disabled-true-doesnt-work/#findComment-1167406 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.