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; Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.