evoShop.ELEMENT.val( [value] )

arguments:

  • value (optional): set the value of the ELEMENT to value
  • returns:

  • If a value is provided, the ELEMENT returns itself.
  • If no value is provided, the value of the ELEMENT is returned
  • <input type="text" value="hello" id="my-input">
    
    var val = evoShop.$("#my-input").val();  // returns "hello"
    evoShop.$("#my-input").val( "goodbye" );
    
    <input type="text" value="goodbye" id="my-input">