Add an id to each activeCorner on a SlideDeck


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. // Initiate your SlideDeck up here...
  2. // Select all the activeCorner elements, then iterate through them and add ids.
  3. $('.slidedeck div.activeCorner').each(function(i){
  4. $(this).attr('id','corner_' + (i+1));
  5. });
  6. // Style with CSS accordingly.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.