Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="product-image">
- <p class="prod-name">Product Name</p>
- <p class="prod-price" style="display:none" >$1000</p>
- <input type="button" class="show-price" value="show price"/>
- </div>
- .product-image{
- border:1px solid #ccc;
- width:100px;
- height:100px;
- background-color:#f6f6f6;
- }
- .prod-name,.prod-price{
- font-size:12px;
- text-align:center;
- }
- $('.show-price').click(function(){
- $(this).hide();
- $('.prod-price').show();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement