1
I wonder if via JS or Jquery, there is a way for me to identify the type of DOM object I am manipulating.
For example, I make the following selector: $('#filtos select, #filtos input').each(function (index, obj).....);
Within this each
I’ll have objects <select>
, <input>
of the kind text
, checkbox
among others. I would like to know if you have any property that tells me what kind of these elements.
obj.tagname
– BrunoRB
@Brunorb , that’s right thanks. Can answer the question without being like comment.
– lionbtt
What do you need it for? Wouldn’t it be better to make two selectors separately? Or maybe you can use a common function instead of doing different things for each type of field.
– utluiz