プロトタイプ1.7.0を使用しています。 下記のようなHTMLコードがあります。 私はオンのカスタムメソッドを追加しました。htmlタグのカスタムプロパティがie9とfirefoxによって認識されない
<div id="showButton" onclick="javascript:hello();" onhide="onNamehide()">show</div>
今、私がクリックしたときに、$('showButton').onhide
がtrueにIE8で表示され、IE9、Firefoxでfalseと評価します。
function hello(){
if($('showButton').onhide){
alert("I am able to find onhide function");
} else {
alert("Sorry, I am not able to find onhide function");
}
}
誰か教えていただけますか?
'Prototype'はjqueryではありません。間違ったタグ名! –