sreekiran 0 Newbie Poster
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.
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.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.