
This method takes in as argument the name attribute value of elements to be retrieved and returns a collection of desired matching elements. In the code snippet below, let us say we need to get a reference to the element with the name attribute mail_format. select name="mail_format" id="slt_mail_f…