Is there a way using Jquery or just plain javascript that you can derive if something is a form field? Example
<div id='some_id'></div>
or:
<input type='text' id='some_id'>
Is there a way to check $('#some_id') to ensure it is actually a valid form field type like input, select, checkbox, radio, etc. and not a div, td or other element?