A less bug-prone way to find elements by their name attribute. When the name is dynamic bugs are easily introduced while typing '[name="' + name + '"]'. Just use $.findByName(name) instead.