Check Checkbox using Jquery or Javascript

You can check a checkbox using JQuery or JavaScript, here i am giving a sample code to check the checkbox by using JavaScript or JQuery. The below example is very simple demo that it will call the jQuery function based on the link clicked then by using the JQuery we are adding a HTML attribute to that  element. Similarly we are removing the attribute when uncheck link is clicked.

JQuery Code to Check the Checkbox