In the project there is this external .js file which is linked to a .jsp file. I need to confirm if a certain check box in the .jsp file is checked and I would have to do it from the .js file. Let's say the id for the checkbox is: "fruit".
I code the following in the .js file:
somehow, the console statement never gets printed, I am not sure what is wrong with the above mentioned code. Hope someone can advise. Thank you.