PHP Classes

File: js/menu.js

Recommend this page to a friend!
  Classes of Ann   Purp Project   js/menu.js   Download  
File: js/menu.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Purp Project
Application to manage photo albums
Author: By
Last change: Update of js/menu.js
Date: 1 year ago
Size: 1,119 bytes
 

Contents

Class file image Download
$(document).ready(function(){ checked = []; console.log(checked); $('input[type=checkbox]').on('click', function () { if ($(this).is(':checked')) { checked.push($(this).val()); }else{ i = checked.indexOf($(this).val()); checked.splice(i, 1); } console.log(checked); $.ajax({ url: 'php/filter.php', type: 'POST', data: { caths: checked }, success: function(data){ console.log("ee".data); $('.pics').html(data); // if(data.status == true){ // alert("true"); // document.location.href = '../profile.php'; // }else{ // alert("false"); // $('.msg').removeClass('none').text(data.message); // document.location.href = '../signin.php'; } }) }); })