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 ??? Quote 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 Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.