simpleCart(js)

items
Items:
Total:

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
My Picture
var img_alt = simpleCart.$("#my-img").attr( "alt" ); //returns "My Picture"
simpleCart.$("#my-img").attr( "title" , "Picture" );
My Picture

Comments

  1. Aug 10, 2012

    Juan  said:

    HHIS I should have thugoht of that!

Commenting is not available in this channel entry.