Each element in the form contains a unique id because you want to be able to identify each piece using jQuery.
表单内的每个元素均包含一个惟一的ID,因为我们想要能够使用jQuery标识每一块。
JQuery only returns the first matching element when using the ID selection, because it expects you to follow proper page design.
使用ID选择时,jQuery仅返回第一个匹配的元素,因为它要求您遵循正确的页面设计。
Two common search techniques used in jQuery code are to search through elements by their ID and to search through elements by their CLASS.
在jQuery代码中两种常见的搜索技术是通过元素的ID进行搜索和通过元素的CLASS进行搜索。
Writing jQuery code when you know every ID and class on the page can be very straightforward and easy.
知道页面上的所有ID和类时,编写jQuery代码是非常简单的。
When using jQuery, searching for a CLASS is as easy as searching for an ID on a page, thus making it seem that these two searches are interchangeable.
使用jQuery时,搜索CLASS就像搜索页面上的ID一样简单,因此这两个搜索似乎是可互换的。
When using jQuery, searching for a CLASS is as easy as searching for an ID on a page, thus making it seem that these two searches are interchangeable.
使用jQuery时,搜索CLASS就像搜索页面上的ID一样简单,因此这两个搜索似乎是可互换的。
应用推荐