I am trying to create an ajax request where the URL is the form on submit.
My Jquery:
$(document).ready(function() {
$('.menuitem input:checkbox').change(function(){
$.ajax({
type:'get',
url:form.submit();,
data:form.serialize(),
success:function(msg){
$('#formcontent').html(msg);
}
})
})
$('input:submit').hide();
$('.menuitem input:checkbox').change(function(){
if($(this).is(":checked")) {
$('div.hidediv').removeClass("hidediv");
}
});
});
1 Answer