asmith Posted January 10, 2008 Share Posted January 10, 2008 <form action="none.php" method="post" onSubmit="this.submit1.disabled = true;this.submit2.disabled = true;return true;"> the code above disables the 2 buttons one page , when they are clicked . i want to now how can i set them , if one clicked ,also all other buttons on page disables too. thanks Link to comment https://forums.phpfreaks.com/topic/85383-disable-button/ Share on other sites More sharing options...
phpQuestioner Posted January 11, 2008 Share Posted January 11, 2008 <input type="button" value="Button Value" onclick="this.disabled = true"> or <input type="submit" value="Submit" onclick="this.disabled = true"> Link to comment https://forums.phpfreaks.com/topic/85383-disable-button/#findComment-436237 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.