nebukad

js promo

Jan 3rd, 2017
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $.each($('.template-properties'), function(k,v){
  2.     var index = k+1;
  3.     var tabbing = $('.tabbing-'+ index);
  4.     var properti = $('.properties-div-'+ index);
  5.     if(tabbing.length > 0) {
  6.         $.each(tabbing, function (kt, vt) {
  7.             var id = $(vt).attr('id');
  8.             var select = $('#'+id+' select');
  9.             $.each(select, function (kk, vv) {
  10.                 var ids = $(vv).attr('id');
  11.                 var split = ids.split('properties');
  12.                 var select_id = '#properties'+ split[1];
  13.                 var input_id = '#valuelayout'+ split[1];
  14.                 console.log('select', $(select_id).val());
  15.                 console.log('input', $(input_id).val());
  16.             });
  17.  
  18.         });
  19.     }else{
  20.         if(properti.length > 0){
  21.             $.each(properti, function (kp, vp) {
  22.                 console.log('properti', kp, vp);
  23.             });
  24.         }
  25.     }
  26. });
Advertisement
Add Comment
Please, Sign In to add comment