Advertisement
Guest User

Javascript for Custom Image List for Options Framework

a guest
Feb 5th, 2013
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. jQuery(document).ready(function($) {
  3.     // Image Options
  4.     $('.of-radio-img-img').click(function(){
  5.         $(this).parent().parent().find('.of-radio-img-img').removeClass('of-radio-img-selected');
  6.         $(this).addClass('of-radio-img-selected');     
  7.     });
  8.    
  9.     $('.of-radio-img-label').hide();
  10.     $('.of-radio-img-img').show();
  11.     $('.of-radio-img-radio').hide();
  12. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement