2 years ago
by admin
git pull
$ git pull origin main
**git pull** добре використовувати:
- перед початку роботи (щоб мати останні зміни),
- перед виконанням **git push** (щоб уникнути можливих конфліктів).
git push
$ git add .
$ git commit -m "added new file"
$ git push origin main
Category: Git | Comments: 0
2 years ago
by admin
jQuery also has a checked property that can be used to check if a checkbox is checked or not. Use propery 0th index of the jQuery object. Example: $('#light')[0].checked
// select the element
let light = $('#light');
let output = $('#output');
// add onchange event to checkbox
light.onchange = function() {
if (light[0].checked) {
output.html('The light is on');
} else {
output.html('The light is off');
}
};
Category: Git | Comments: 0