In this article I am describes about how to checkthe checkbox on by page load using jquery. In jquery we can use prop keyword toachieve it.
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
$(document).ready(function () {
$("#chkIsVisible").prop('checked', true);
});
<input type="checkbox" aria-checked="true" id="chkIsVisible" />
This also easily achieve without using jquery you just set bycheckbox property checked=”checked”.
<input type="checkbox" aria-checked="true" checked="checked" id="chkIsVisible" />
Post your comments / questions
Recent Article
- How to create custom 404 error page in Django?
- Requested setting INSTALLED_APPS, but settings are not configured. You must either define..
- ValueError:All arrays must be of the same length - Python
- Check hostname requires server hostname - SOLVED
- How to restrict access to the page Access only for logged user in Django
- Migration admin.0001_initial is applied before its dependency admin.0001_initial on database default
- Add or change a related_name argument to the definition for 'auth.User.groups' or 'DriverUser.groups'. -Django ERROR
- Addition of two numbers in django python
Related Article