I need a way to determ开发者_StackOverflowine if a returned object is a textarea (for example).
Try with:
$('selector').is('textarea');
Or:
alert($('selector')[0].type);
$("selector").attr('type')
I need a way to determ开发者_StackOverflowine if a returned object is a textarea (for example).
Try with:
$('selector').is('textarea');
Or:
alert($('selector')[0].type);
$("selector").attr('type')
精彩评论