evoShop.$( selector )

arguments:

  • selector: string of a css selector
  • returns:

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

    <ul>
        <li class="item">Item 1</li>
        <li class="item">Item 2</li>
        <li class="item">Item 3</li>
    </ul>
    
    var items = evoShop.$('li.item');
    items.addClass('cool');
    

    After:

    <ul>
        <li class="item cool">Item 1</li>
        <li class="item cool">Item 2</li>
        <li class="item cool">Item 3</li>
    </ul>