I came across the following code in JQuery which I'm not familiar with
$('*[name=\'' + child.Name + '\'],[id=\'' + child.ID + '\']');
I have two different divs(different IDs) containing two input elements with same name. When I pass the name and ID to the above query, I get both the input elements.
I found this on Stack Overflow, but if what is mentioned there is correct, I should be getting the element with in the div which I pass.
I want to know how this would work:
$('[name=""],[id=""]');
Thanks in Advance.