in javascript

Recommended Answers

All 2 Replies

document.getElementById('button').disabled = true

if you want to maintain the state when refreshing just use something like a cookie to hold the boolean flag

Remember that any user can disable JavaScript in his browser controls.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.