To filter the <input>
s within the <form>
, you'll have to first find a collection of them:
$('#split_form').find(':input').not('.not_included').serializeArray();
// or
$('#split_form').find(':input:not(.not_included)').serializeArray();
.not()
only applies filtering to the elements directly within the jQuery()
collection, which is presumably just the <form>
based on the selector, '#split_form'
.
It won't affect their children or descendants. So, it's just determining whether the <form>
is either:
<form id="split_form"></form>
<form id="split_form" class="not_included"></form>