Home >Web Front-end >JS Tutorial >The difference between $(#form :input) and $(#form input) in jquery_jquery

The difference between $(#form :input) and $(#form input) in jquery_jquery

WBOY
WBOYOriginal
2016-05-16 16:39:221366browse

$("form :input") returns all form objects in the form, including textarea, select, button, etc.
$("form input") returns all input tag objects in the form

Form input is a hierarchical selector (the elements matched by each selector are combined and returned together)
form: input is a form selector (matches all ,