Advertisement
La_JennyLove

Untitled

Sep 17th, 2021
1,991
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.62 KB | None | 0 0
  1. jQuery( 'document' ).ready( function( $ ) {
  2.     $(document).ready( function() {
  3.  
  4.             console.log('test');
  5.  
  6.             // Filling questions one by one with jquery and css
  7.             $('.siguiente').click(function () {
  8.  
  9.                 console.log('.siguiente clicked');
  10.  
  11.                 var id = $(this).attr('id');
  12.                 id = id.remplace('_btn','');
  13.  
  14.                 console.log('id: ' + id );
  15.  
  16.                 var temp_remplace = $('#' + id + '_in').val();
  17.  
  18.                 console.log('temp_remplace: ' + temp_remplace );
  19.  
  20.                 $('#' + id).html( temp_remplace );
  21.  
  22.                 var card = $(this).attr("data-card");
  23.                 $('#card_' + card).hide();
  24.                 $('#card_' + card+1).show();
  25.  
  26.                 });
  27.  
  28.   });
  29. });
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement