1$(document).ready(function(){
2$('.menu-toggle').click(function(){
3 $('nav').toggleClass('active')
4}
5}
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})
1 var curPage = 1;
2 var totNews = jQuery('#totNews').val();
3 var perPage = jQuery('#perPage').val();
4 var totPages = Math.ceil(totNews / perPage);
5
1var m = document.getElementById("myelement"), c = m.style;
2c.color = "#c00";
3c.backgroundColor = "#eee";
4c.width = "200px";
5c.height = "100px";
6c.borderColor = "#f00";