且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

jQuery find $ .find('selector')和$('selector')的区别

更新时间:2023-12-04 11:27:04

The reason this does not work is because find() lets you filter on a set of elements based on a selection you've already made.For example if you wanted to select all of the inputs within a particular form, you could write:

$('#aParticularForm').find('input') 

It cannot be called on its own.