How to display data based on what the user input in the search form?
<p>I'm creating a custom search form using JQUERY, in the search form there's a select box where it allow the user to pick a categories they want to search in (i.e. sku, extension, etc.), an input box where they can type in what exactly are they looking with a specific category, and three radio button with an option of "and", "or", and "not". The radio should allow the user to:
[a] if the user checked "and" button it allow them to search lets say this sku with this extension together as one
[b] if the user checked "or" button it allow them to search this sku or that extension i.e. the sku can have a different extension where the "and" the sku and the extension have to be together as one
[c] if the user checked "not" button it allow them to search for this sku NOT this extension i.e. if this sku have that extension it won't show it, instead it will show this sku with another extension</p>

<p>My question is "How do I do part C?" I already got it to work for the "and" and the "or" button but I couldn't get the "not" button to work.</p>

<p>Here is my code:</p>

<pre><code>*var dataToDisplay;

$(".prodcategories").each(function(i)
{
    var id      = $(this).attr("id").replace("categories", "description");
    var value   = $("#"+id).val().toUpperCase();
    var isAnd   = $(".and").is(":checked");
    var isOr    = $(".or").is(":checked");
    var isNot   = $(".not").is(":checked");

    switch(parseInt($(this).val()))
    {
    case 1://search by sku
            if(!dataToDisplay)
        {
            dataToDisplay= PRODCACHE.RefineBySku(value);
        }
        else
        {
            if(isAnd)
            {
                dataToDisplay= PRODCACHE.RefineBySku(value, dataToDisplay);
            }
            if(isOr)
            {
                dataToDisplay= PRODCACHE.RefineBySku(value);
            }
            if(isNot)
            {
                /*if "not" radio is check run this code*/
            }
        }
    break;
    default:
        alert("Please Fill In The Missing Information");
    }
</code></pre>

<p>});*</p>
