I have a need to cycle through parent objects using JQuery until I find the 2nd occurence of a table object. I start by finding a particular <form> object and work my way up from there.
I am trying to use the 'tagName' to determine when I find a <table> but each time I try and reference the tagName from a JQuery object I get 'undefined'. I understand why now, but need to know then, how to find the tagName given that I have a jquery object.
The code snippet is the code that doesn't work:
var obj = $("form.leadform");
alert("Found Form. tagName = " + obj.tagName);