Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
3
Reply
How to POST value to PHP in the same page using jQuery
snowal raj
Feb 9 2017 6:20 PM
602
Reply
Hai,
I have one label and button. when i click button, i need display button value into label
in same page without page reload in php
I will Try this
$(function (){
$(".1234").click(function() {
$(".123").toggle();
var CID = $(this).val();
$.ajax({
type: "POST",
url: "php/test.php",
data:{C_ID:CID},
success: function(data){
alert(data);
});
});
});
in test.php;
$id = $_REQUEST["C_ID"];
but i can't get the button value
plz help
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
Wrong Shipping and billing Addresses
How to generate unique random numbers using php