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
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Manas MohapatraRank #182 · 13.2K reputationPosted Feb 9, 2017, 8:48 PM EST
snowal raj160 reputationPosted Feb 10, 2017, 6:52 AM EST
Kesavan KrishnanRank #3,055 · 471 reputationPosted May 29, 2017, 10:11 PM EDT