removeAttr()

Type : public method

Support : 0.6

Return : -

  • 대상 개체의 해당 속성 삭제.

Methods

  • removeAttr( attr ) : voidver 0.6~

    • attr : String
      대상 속성, IE6,7에서도 공통으로 'class'로 표기해서 사용할 수 있다.

Example

//속성 추가
$B( '#box' ).attr( 'idx', '100' );

//속성 삭제
$B( '#box' ).removeAttr( 'idx' );