simpleCart(js)

items
Items:
Total:

simpleCart.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

var val = simpleCart.$("#my-input").val();  // returns "hello"
simpleCart.$("#my-input").val( "goodbye" );

Comments

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