「jQuery入門」disabledを変更するコード
JSコード
$(“button:eq(0)").click(function(){
var text1=$(“input:text:eq(0)");
if(text1.attr(“disabled")==""){
text1.attr(“disabled","disabled");
}else{
text1.attr(“disabled","");
}
});
Coding Changes the World
JSコード
$(“button:eq(0)").click(function(){
var text1=$(“input:text:eq(0)");
if(text1.attr(“disabled")==""){
text1.attr(“disabled","disabled");
}else{
text1.attr(“disabled","");
}
});