This question already has an answer here:
I have set of html elements and I named those for all input/select/textarea. Anyway the names are unique for each element.
Now I need to get the Html TAG (Input/Select/Textarea) by Element name.
<input type="text" name="sample" />
I need to get the ‘input’ TAG by using element name ‘sample’.
I dont want to mention the TAG name on selector part in jquery. I have only unique names to find the TAGs.
Please help on this.
Thanks in advance.!