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
Release: 2016-05-16 16:39:22
Original
1359 people have browsed it

$("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 ,