I am trying to build a simple html app getting some basic customer information and storing the information in database. After capturing the information, when the customer logs in his profile, he can see 3 buttons.
button 1= print
button 2= delete
button 3= edit
Special requirement:
- Unless button 1 is clicked,
- Then button 2 and 3 should be disabled for the first time user logs in.
For the next subsequent logins
- All buttons should be enabled.
So far I have done the below thing:
<html>
<head>
<script>
function enableButton() {
document.getElementById("button2").disabled = false;
document.getElementById("button3").disabled = false;
}
</script>
</head>
<body>
<input type="button" id="button1" value="print" onclick="enableButton()" />
<input type="button" id="button2" value="delete" disabled />
<input type="button" id="button3" value="edit" disabled />
</body>
</html>
But this doesn't take care of the requirement described above. Any help would be appreciated