dimanche 5 avril 2020

how to send span tag value to the another page with request method in laravel

$('#side').change(function() { var token = ''; var s = $(this).val(); // alert(s); var data ={'s': s,'_token': token}; // console.log(s,data); $.ajax({ type:'POST', url: "", data:data, success: function(gem) { var list = ""; // var list2 = "" for (var i = 0; i"'+tot+'"
'; // list2 += '"++'"' } document.getElementById('changeprice').innerHTML =list; // document.getElementById('changeprice').innerHTML =list2; $('#changeprice').append('Rp'+tot+''); c = $('#changeprice span').text(tot); // alert(c); } }); });

via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire