yos*_*ssi 2 jquery detection object-type
我需要一种方法来确定返回的对象是否是textarea(例如).
Sar*_*raz 7
试试:
$('selector').is('textarea');
要么:
alert($('selector')[0].type);
归档时间:
15 年,7 月 前
查看次数:
87 次
最近记录: