Last active
August 29, 2015 14:16
-
-
Save ysinc88/2ee6d86c3658a7bb6ca0 to your computer and use it in GitHub Desktop.
Change target div SRC with @this src
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="product-gallery container"> | |
<div class="col-md-12 main-image"> | |
<%= image_tag(p.product_images.first.src) %> | |
<!-- To be populated with product feature image--> | |
</div> | |
<div class="mini-images col-md-12 col-xs-12"> | |
<% p.product_images.each do |img| %> | |
<div class="col-md-4 col-xs-4 mini-image"> | |
<%= link_to(image_tag(img.src), "#") %> | |
</div> | |
<% end %> | |
</div> | |
</div> | |
<script> | |
$( ".mini-img img" ).hover( | |
// I want the hovered thumb to display inside .main-image | |
); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment