jquery to vanilla js converter
$('a').click(function(e) {
e.preventDefault();
var input = $(this).attr('data-input');
var checkbox = $('input:checkbox[name=' + input + ']');
checkbox.prop("checked", !checkbox.prop("checked"));
})
jquery to vanilla js converter
$('a').click(function(e) {
e.preventDefault();
var input = $(this).attr('data-input');
var checkbox = $('input:checkbox[name=' + input + ']');
checkbox.prop("checked", !checkbox.prop("checked"));
})
jquery to vanilla js converter
var curPage = 1;
var totNews = jQuery('#totNews').val();
var perPage = jQuery('#perPage').val();
var totPages = Math.ceil(totNews / perPage);
jquery to vanilla js converter
$(document).ready(function(){
$('.menu-toggle').click(function(){
$('nav').toggleClass('active')
}
}
javascript alternative to jquery css
var m = document.getElementById("myelement"), c = m.style;
c.color = "#c00";
c.backgroundColor = "#eee";
c.width = "200px";
c.height = "100px";
c.borderColor = "#f00";
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us