Click here to Skip to main content
15,899,634 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have to make a simple Javascript calculator with an additional option. When a button "Add" or "Divide" is clicked the script should check whether I put any number or the field is empty. How can I do this?
Posted
Comments
PIEBALDconsult 14-Jan-15 22:36pm    
Don't. Have the button disabled except when the values are present.

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900