domに画像タグがありますが、その属性を変更できません
$('#stuff').prop("disabled", true);
また
$('#stuff').attr("disabled", true);
$('#stuff').click(function(){ ... });
html:
<img src='images/system_help.png' id='stuff' width='18px'/>
propまたはattrを使用した後、タグをクリックできます
domに画像タグがありますが、その属性を変更できません
$('#stuff').prop("disabled", true);
また
$('#stuff').attr("disabled", true);
$('#stuff').click(function(){ ... });
html:
<img src='images/system_help.png' id='stuff' width='18px'/>
propまたはattrを使用した後、タグをクリックできます
フォーム要素のみが無効な属性を持ちます。代わりに、イベント ala のバインドを解除してみてください。
$('#stuff').unbind();
無効にできるのはフォーム要素のみです。 imgフォーム要素ではありません。を無効にすることで何を達成しようとしていimgますか?クリックハンドラーを削除しようとしている場合は、
$('#stuff').unbind('click');
あなたがやりたいことをします。
の属性disabledはありませんimg。
私はあなたが必要だと思いますone。
$('#stuff').one(function(){ ... });