Created
November 30, 2012 19:29
-
-
Save Neener54/4177969 to your computer and use it in GitHub Desktop.
jason_jquery
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
jQuery(container) | |
.append(jQuery('<div/>') | |
.addClass('blowout-item-picture') | |
.append( | |
jQuery('<img/>').attr('src', 'http://s3.amazonaws.com/ifrogz-images/images/promo/blowout/blowout-item-test.jpg') | |
) | |
) | |
.append(jQuery('<div/>') | |
.addClass('blowout-item-name') | |
.html(cat) | |
) | |
.append(jQuery('<div/>') | |
.addClass('blowout-item-options') | |
.append(jQuery('<form/>') | |
.attr('method', 'post') | |
.attr('action', 'basket.php') | |
.append(jQuery('<div/>') | |
.addClass('blowout-item-options-toprow') | |
.append(jQuery('<span/>') | |
.addClass('product-color') | |
.append(jQuery('<select/>') | |
.attr('name', 'sku')) | |
) | |
.append(jQuery('<span/>') | |
.append(jQuery('<fieldset/>') | |
.addClass('item-quantity') | |
.append(jQuery('<input type="number" name="qty-1" id="qty-1" step="1" value="1"/>')) | |
.append(jQuery('<label id="qty-1-label" for="qty-1" >Qty</label>'))) | |
) | |
) | |
.append(jQuery('<div/>') | |
.addClass('blowout-item-options-bottomrow') | |
.append(jQuery('<span/>') | |
.addClass('product-price') | |
.html('$9.99') | |
) | |
.append(jQuery('<div/>') | |
.addClass('yellow-btn round5') | |
.append(jQuery('<input type="submit" value="Add to Cart ▸" class="add2Cart" id="addToCartBtn-1">')) | |
) | |
) | |
) | |
) | |
.append(jQuery('<div/>') | |
.addClass('blowout-item-text') | |
.append(jQuery('<p/>') | |
.html('Loading...') | |
.append(jQuery('<span/>') | |
.addClass('readMore') | |
.append(jQuery('<a/>') | |
.attr('href', '') | |
.html('+ Read More') | |
) | |
) | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment