items
simpleCart.ELEMENT.text( [text] )
arguments:
- text (optional): the contents to set the text of the element(s)
returns:
- If text is not provided, simpleCart will return the text of the element.
- If no arguments are sent, the ELEMENT will be returned
Hello!
var div = simpleCart.$("#my-div"); var div_text = div.text(); // returns "Hello!" div.text( div_text + " Bob!" );
Hello! Bob!
Comments
- There are no comments for this entry yet.