See my code:
var ths = $("#my_table table th");
if (ths.length > 1) {
var $th = ths[1]; // tried here plain 'var th' - still got error
th.find('#map_column_element_id'); // error here!
}
I get array of JQuery objects. Then I try to manage the second element as JQuery object. When I issue
th.find(...)
I get TypeError: th.find is not a function. What am I doing wrong?
findan element by itsid?ids should be unique on the page so$("#map_column_element_id")should be fine.