items
simpleCart.ELEMENT.attr( attr [, value] )
arguments
- attr: string to identify to the attribute of the element to get/set
- value (optional): value to set the attribute of the element
returns:
- If a value is specified, the ELEMENT returns itself
- If no value is provided, the attribute value of the ELEMENT is returned
var img_alt = simpleCart.$("#my-img").attr( "alt" ); //returns "My Picture" simpleCart.$("#my-img").attr( "title" , "Picture" );
Aug 10, 2012
HHIS I should have thugoht of that!