jQuery.noConflict(); jQuery ( function() { jQuery('#f').change( function(e){ filter() } ); jQuery('#c').change( function(e){ filter() } ); jQuery('#n').change( function(e){ filter() } ); jQuery('#r').change( function(e){ filter() } ); jQuery(".reset").click ( function(e) { document.location.href = jQuery("#frm").attr("action"); return false; } ); jQuery(".datepicker").datepicker ( { dateFormat: 'dd-mm-yy', showOtherMonths: true, changeMonth: true, changeYear: true } ); } ) function getVars() { var dataString = jQuery('#frm').serialize(); return dataString; } function loadResults() { jQuery.ajax ( { url: "./training/js/search.php?cmd=loadResults", type: 'POST', cache: false, data: getVars(), success: function(html) { jQuery("#results").html(html); } } ); } function loadFunctiegroep() { jQuery.ajax ( { url: "./training/js/search.php?cmd=loadFunctiegroep", type: 'POST', cache: true, data: getVars(), success: function(html) { jQuery("#f").html(html); } } ); } function loadCategorie() { jQuery.ajax ( { url: "./training/js/search.php?cmd=loadCategorie", type: 'POST', cache: true, data: getVars(), success: function(html) { jQuery("#c").html(html); } } ); } function loadNiveau() { jQuery.ajax ( { url: "./training/js/search.php?cmd=loadNiveau", type: 'POST', cache: true, data: getVars(), success: function(html) { jQuery("#n").html(html); } } ); } function loadRegio() { jQuery.ajax ( { url: "./training/js/search.php?cmd=loadRegio", type: 'POST', cache: true, data: getVars(), success: function(html) { jQuery("#r").html(html); } } ); } function filter() { loadFunctiegroep(); loadCategorie(); loadNiveau(); loadRegio(); //loadResults(); }