$(document).ready(function () {
$("#btn").on("change", function() {
var val = $(this).val();
$.ajax({
url: "1.php",
data: { id: val },
success: function( result ) {
alert("Hi, testing");
alert( result );
}
});
});
});
I want to redirect to 2.php?name=iamchecking
it shows alert msg "hi testing" but I want to send it to 2.php
and get the value of name from get on PHP. How can I do so?