私が次のものを持っているとしましょうdiv
。
<div id="123" class="abc">Foobar</div>
div
これがマウスオーバーされたときに関数をトリガーするためにこれを行うことができることを私は知っています:
$(".abc").bind({
mouseenter : SomeFunction(id)
});
これにより、実行する前に、「123」であるSomeFunction
this の id を抽出し、それをパラメーターとして渡して処理できるようにしたいと考えています。私はそれを行うことができますか?div
SomeFunction