[jQuery]removeAttr()で属性を削除する

書式
$(“セレクター").removeAttr(“属性名")
使用例

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$cft.each(function(){
var name = $(this).attr("name");
var type = $(this).attr("type");
//some code
}
$cft.removeAttr("disabled");
$cft.each(function(){ var name = $(this).attr("name"); var type = $(this).attr("type"); //some code } $cft.removeAttr("disabled");
$cft.each(function(){
    var name = $(this).attr("name");
      var type = $(this).attr("type");
       //some code
}
$cft.removeAttr("disabled");

 

jQuery

Posted by arkgame