Answers for "page load without refresh jquery"

19

jQuery refresh page

$('#myElement').click(function() {
    location.reload();
});
Posted by: Guest on July-22-2019
0

submit form without page refresh using ajax jquery and php

$(document).ready(function(){
		$('button').click(function(event){
			event.preventDefault();
			var	name = $('#name').val();
			var	mobile = $('#mobile').val();
			var	address = $('#address').val();
			var	city = $('#city').val();
			$.ajax({
			    type: "POST",
			    url: "upload.php",
			    data: { name:name, mobile:mobile, address:address, city:city },		    
			    dataType: "json",
			    success: function(result){
			        			    }
			});
		});
	});
Posted by: Guest on November-23-2020
1

refresh a page in jquery

$('#something').click(function() {
    location.reload();
});
Posted by: Guest on February-24-2020

Code answers related to "page load without refresh jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language