Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function(e){
- e.preventDefault();
- $('.fabric').on('change',function(e){
- var fabricID = $(this).val();
- console.log("fabric id_price is " + fabricID); //debugging
- if(fabricID){
- $.ajax({
- type:'GET',
- url:'calculates.php',
- data:'id_price='+fabricID,
- success:function(html){
- // do nothing cuz i just need to combine with script bellow
- //some closing tags
- $('.size').on('change',function(e){
- e.preventDefault();
- var sizeID = $(this).val();
- if(sizeID){
- $.ajax({
- type:'GET',
- url:'calculates.php',
- dataType: 'json',
- data:'size_id='+sizeID,
- success:function(html){
- $(".icms" + id).text(data.val);
- //some closing tags
Advertisement
Add Comment
Please, Sign In to add comment