Sample Jquery

<script>
function confirmPayment(){
$(‘#modal_payment_amount’).html ($(‘#payment_amount’).val());
$(‘#modal_reseller_name’).html ($(‘#reseller_name’).val());
$(‘#modal_payment_memo’).html ($(‘#payment_memo’).val());
}

function makePayment(){

var amount = $(‘#payment_amount’).val();
var pin = $(‘#payment_pin’).val();
var reseller_id = $(‘#reseller_id’).val();
var data1 = “action=add&reseller_id=”+reseller_id+”&amount=”+amount+”&pin=”+pin ;

$.ajax({
type: ‘POST’,
url: “paymentaction.php”,
data: data1,
success: function(mes) {
$(“#myDiv”).html(mes);
},

});

;
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s