evoShop.$create( tag )

arguments:

  • tag: string of tagName of DOM element to create (ie ‘span’,‘div’, etc)
  • returns:

  • evoShop.ELEMENT object of new DOM element
  • <div id="container">
    </div>
    
    var myDiv = evoShop.$create('div');
    myDiv.text("hello");
    evoShop.$("#container").append(myDiv);
    
    <div id="container">
        <div>hello</div>
    <div id="container">
    </div></div>