Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You're probably looking for a 'not()' filter. At the line you specified, try this:</p> <pre><code>.find('input,select,textarea').not("[class='for\\:has-buy-sell-agreementtrue'] *") </code></pre> <p>Or with the variables you mentioned:</p> <pre><code>.find('input,select,textarea').not("[class='for\\:" + element + "true'] *") </code></pre> <p>I don't think the usual class selector (the dot) would work because jQuery might think it's a pseudo selector like 'checked' or 'contains.'</p> <p><strong>EDITED</strong></p> <p>Okie dokie, I'll give it one more shot:</p> <p>IF you wanted to narrow the number of input, select, and textrea elements returned, then you could either narrow the 'find' function or broaden the 'not' function. For example, If you wanted to take action only on form elements inside form_1, then you'd do this:</p> <pre><code>.find('#form_1 input, #form_1 select, #form_1 textarea').not("[class='for\\:" + element + "true'] *"); </code></pre> <p>Here's a little more detail on the 'not' filter. The 'not' filter does the following:</p> <ol> <li>Finds all elements in the <strong>entire</strong> document that its selector (the 'not' selector) specifies.</li> <li>Compares the elements that it finds in step 1 with the list of elements in the calling 'find' function.</li> <li>Removes all elements that are the same between the two sets.</li> <li><strong>The resulting set of elements includes only those elements that were in the original find, but were not in the 'not' function.</strong></li> </ol> <p>Therefore, the set of elements above would only include input, select, and textarea elements that were not inside the class=for:has-buy-sell-agreement.</p> <p>Oh, and I copied and pasted this filter onto a simple html document and it worked. So you should be all set!</p> <p>Later Dave, Best of luck.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload