「jQuery入門」要素の属性を設定する方法

2018年6月10日

①属性の現在値を取得する
$('#cft’).attr('width’);

②既存の属性を削除する
// width属性を削除
$('#cft’).removeAttr('width’);

// 属性を削除
$('#cft’).removeAttr('width height’);

jQuery

Posted by arkgame