simpleCart(js)

items
Items:
Total:

simpleCart.$( selector )

arguments:

  • selector: string of a css selector

returns:

  • simpleCart.ELEMENT object containing one or more DOM elements if the selector matches anything on the page

Before:

  • Item 1
  • Item 2
  • Item 3
var items = simpleCart.$('li.item');
items.addClass('cool');

 

After:

  • Item 1
  • Item 2
  • Item 3

Comments

  1. There are no comments for this entry yet.
Commenting is not available in this channel entry.