JQuery performs query Usage Analysis Based on the name attribute. jqueryname
This document describes how jQuery searches based on the name attribute. We will share this with you for your reference. The details are as follows:
$ ("Div [id]") // select all div elements containing the id attribute $ ("input [name = 'newsletter ']") // select the input element $ ("input [name! = 'Newsletter'] ") // select the input element $ (" input [name ^ = 'News'] ") where all name attributes are not equal to those of 'newsletter'. // select all input elements starting with 'new' for the name attribute $ ("input [name $ = 'News']") // select the input element ending with 'new' for all name attributes $ ("input [name * = 'man']") // select all input elements whose name attribute contains 'new' $ ("input [id] [name $ = 'man']") // you can use multiple attributes for joint selection. This selector obtains all elements that contain the id attribute and end with man.
For example, $ (": input [name = 'login']") indicates that the form whose name is login is searched.