الخاصية ‎event.type‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎ في jQuery

من موسوعة حسوب
اذهب إلى التنقل اذهب إلى البحث
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

event.type

القيمة المعادة

تُعيد سلسلةً نصيةً من النوع String.

الوصف

تصف هذه الخاصية طبيعة الحدث.

event.type

أُضيفت مع الإصدار: 1.0.

أمثلة

التنبيه بنوع الحدث عند كل نقرة على العنصر <a>:

$( "a" ).click(function( event ) {
  alert( event.type ); // "click"
});

مصادر