I am using this statement alert(el.parent().next());
But I am getting [object] [object] as an alert. How do I display the ID of the element?
I am using this statement alert(el.parent().next());
But I am getting [object] [object] as an alert. How do I display the ID of the element?
alert(el.parent().next().attr("id"));
equivalent to
alert(el.parent().next()[0].id);