stockton Posted July 5, 2007 Share Posted July 5, 2007 I am sure that I have seen a small script that on condition 1 will display one button and on another condition will cause another button to display but despite googling I have not found same. Suggestions please ??? Link to comment https://forums.phpfreaks.com/topic/58560-solved-switching-buttons-on-screen/ Share on other sites More sharing options...
RichardRotterdam Posted July 6, 2007 Share Posted July 6, 2007 You want a button the dynamically appears on your html page without refreshing am i correct? you should google for javascript DOM and especially the function getElementById().innerHTML function Link to comment https://forums.phpfreaks.com/topic/58560-solved-switching-buttons-on-screen/#findComment-291106 Share on other sites More sharing options...
stockton Posted July 6, 2007 Author Share Posted July 6, 2007 I solved it by document.getElementById("Issue").disabled=false; document.getElementById("Issue").src = 'images/issue.png'; when I want the issue button/image displayed and document.getElementById("Issue").disabled=true; document.getElementById("Issue").src = 'images/IssueNot.png'; when I want the Do Not Issue(or rather cannot issue) image displayed. Link to comment https://forums.phpfreaks.com/topic/58560-solved-switching-buttons-on-screen/#findComment-291113 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.