how can we check the value of a checkbox to find out whether it is checked or not.