jquery to vanilla js converter

Solutions on MaxInterview for jquery to vanilla js converter by the best coders in the world

showing results for - "jquery to vanilla js converter"
Emily
01 May 2020
1$(document).ready(function(){
2$('.menu-toggle').click(function(){
3	$('nav').toggleClass('active')
4}
5}
Juan
01 Sep 2017
1 $('a').click(function(e) {
2  e.preventDefault();
3  var input = $(this).attr('data-input');
4  var checkbox = $('input:checkbox[name=' + input + ']');
5  checkbox.prop("checked", !checkbox.prop("checked"));
6})
Allison
05 Sep 2018
1 var curPage = 1;
2    var totNews = jQuery('#totNews').val();
3    var perPage = jQuery('#perPage').val();
4    var totPages = Math.ceil(totNews / perPage);
5
Jakob
13 Apr 2019
1var m = document.getElementById("myelement"), c = m.style;
2c.color = "#c00";
3c.backgroundColor = "#eee";
4c.width = "200px";
5c.height = "100px";
6c.borderColor = "#f00";