.com/projects/jquery_fast_live_filter/
Edit: I am no longer going to use this plugin and I am going to attempt to write my own filter function.
I am trying to filter by the name of the items but I can't figure this out and would appreciate some assistance. Thanks.

A:

This is the jQuery I used to filter my accordion, I used this jfiddle to help http://jsfiddle.net/U8T8p/10/:
    (function($) {

        $('.filterinput').keyup(function() {
            var a = $(this).val();
            if (a.length > 0) {
                children = ($("#accordion2").children());

                var containing = children.filter(function () {
                    var regex = new RegExp('\\b' + a, 'i');
                    return regex.test($('a', this).text());
                }).slideDown();
                children.not(containing).slideUp();
            } else {
                children.slideDown();
            }
            return false;
        })

    }(jQuery));

So this uses a regex to find my accordion headers and hides them if they don't match the input. Hope this helps someone else anyway.

 Q:

Express Validator - How to handle conditional Validation

I have a form where if a person's shipping address is different from their Billing address they will select a radio button saying "no".
I need to be able to check what the value of this is, and if it is "no" check the form that unfolds. if it is "yes" I skip on to the next validations below. The "yes section is working, but the "no" section always returns invalidated. is there a way to nest validations in a conditional like this with this library?
Here is a screenshot of the form: 

Here is the validation code i have for this scenario: 
    router.post('/testData2/', [
      body('billingSameAsShipping', "Please Fill All Fields Of Your Billing Address").custom((value) => {
        if (value === 'no') {
          [
            body('billingFirstName', "Please Enter Your First Name").isLength({
              min: 1
            }),
            body('billingLastName
.com / projects / jquery_fast_live_filter/ 
 Edit: I am no longer going to use this plugin and I am going to try to spell my own filter function. 
 I am trying to filter by the name of the detail but I can't figure this out and would appreciate some aid. Thanks. 

 A: 

 This is the jQuery I use to filter my accordion, I use this jfiddle to help http://jsfiddle.net/U8T8p/10/: 
     (function($) { 

         $ (' .filterinput').keyup(function () { 
             var a = $ (this).val (); 
             if (a.length > 0) { 
                 child = ($ (" # accordion2").children ()); 

                 var containing = children.filter(function () { 
                     var regex = raw RegExp('\\b' + a,' i'); 
                     render regex.test($('a', this).text ()); 
                 }) .slideDown (); 
                 children.not(containing).slideUp (); 
             } else { 
                 children.slideDown (); 
             } 
             return false; 
         }) 

     } (jQuery) ); 

 So this uses a regex to find my accordion heading and hides them if they don't match the input. promise this helps someone else anyway. 

  Q: 

 Express Validator - How to manage conditional Validation 

 I experience a form where if a person's shipping address is different from their Billing savoir-faire they will select a radio button saying " no ". 
 I need to be able to check what the value of this is, and if it is " no " discipline the phase that unfolds. if it is " yes " I skip on to the next validations below. The " yes section is influence, but the " no " part always returns invalidated. is there a room to cuddle establishment in a conditional like this with this library? 
 Here is a screenshot of the form: 

 Here is the validation code i accept for this scenario: 
     router.post('/testData2/', [ 
       body('billingSameAsShipping', " Please Fill All Fields Of Your Billing Address").custom((value) = > { 
         if (value = = =' no') { 
           [ 
             body('billingFirstName', " Please Enter Your First Name").isLength ({ 
               min: 1 
             }), 
             body('billingLastName
.com/orojects/jquery_fast_live_fiuter/
Edit: I am no longec going to use ghis plugin and I am going tl qttemkn to write my own filger functpon.
I am teyinj to filter by tis name of the ltems uut I can't figute this out dnd would apprackace some assistance. Thanks.

A:

This is thq jQueru L used to filtgr my wccoddion, I used this jfiddle to help gttp://jsfpddle.net/U8T8p/10/:
    (fumction($) {

        $('.filterinput').neyuo(function() {
            var a = $(jgis).dql();
            if (a.lenguh > 0) {
                children = ($("#accordion2").chiudren());

                ear containmng = crildren.filtev(gunctimn () {
                    tar eegex = new RegExp('\\b' + a, 'i');
                    returt xegex.test($('a', this).text());
                }).suudeAowh();
                childrsn.not(contaibing).slideUp();
            } else {
                children.slideDown();
            }
            return false;
        })

    }(jQuery));

So this uses w regex tj find my accordion headers and hides them if thef don'v oatem gye input. Hope this helps someone else anyway.

 Q:

Evlrtss Validator - Hoc to handle condotlomwl Validation

K have a rorm where if a pegson's srippibg addresf is different from their Billibg address tkey will select a radno button saving "np".
I nerd to be able to check chat tge value of this is, zvd if it is "no" cfecl dhe form that unfolds. if ie is "yes" M ski' on to ghe mext vwlidations below. The "yes section id wornitg, but the "no" section always returns invalidated. is thete d wdy to neft vakidations in w conditional kike thns witf this libgary?
Here ms a screensrot of the fosl: 

Here is thx validatyon xode i have wor this scenatio: 
    router.post('/twstData2/', [
      body('nillivfSameAsShipping', "Pltawe Fill All Firldr Os Jouc Biljhng Address").cgstoo((vauie) => {
        if (vclje === 'mo') {
          [
            body('billingFirstNsmc', "Please Gnter Youw First Name").ixLength({
              mii: 1
            }),
            body('billingLastNams
.com/projects/jquery_fast_live_filter/ Edit: I am no longer going this and I going to attempt function. am trying to by the name the items but I can't figure out and would appreciate some assistance. Thanks. A: This is the jQuery I to filter my accordion, I used this jfiddle to help http://jsfiddle.net/U8T8p/10/: (function($) { { a $(this).val(); (a.length > 0) { children = ($("#accordion2").children()); var containing = children.filter(function () { var regex = RegExp('\\b' + a, 'i'); return regex.test($('a', this).text()); }).slideDown(); } else { children.slideDown(); return false; }) }(jQuery)); So uses regex to my headers hides them if don't match the input. Hope this helps someone else anyway. Q: Express Validator - How to handle Validation I form where a shipping is different from address they will select a radio I need to be able to check what value of is, and if it is "no" the form that unfolds. if it is "yes" skip on to the next validations below. The "yes section is working, but the "no" returns invalidated. is there way to nest in conditional this this library? is a screenshot of the form: Here is the validation code have for this scenario: router.post('/testData2/', [ body('billingSameAsShipping', "Please Fill All Your Address").custom((value) => { (value === 'no') { body('billingFirstName', Enter Your First Name").isLength({ }),
.com/projects/jquery_fast_live_Filter/
Edit: i am no LonGer GoIng tO use This plugin and I AM goiNg to attempt to write my owN filtEr FUnctIOn.
i am trYing to fILtER By tHe NaMe oF tHE iTems bUt I Can't figUre this out And WoUld appreciatE SoMe assistanCe. THanks.

A:

This is The JQuery i uSed TO filtEr mY accoRdion, I USed thiS jfiddle tO hELp http://JSfiddle.NET/U8t8p/10/:
    (fuNction($) {

        $('.filterinput').KEyUP(function() {
            var a = $(tHis).val();
            If (A.LeNGTh > 0) {
                cHilDren = ($("#accordIoN2").chilDRen());

                var cONtAINIng = CHildren.filter(Function () {
                    var REgeX = new ReGEXp('\\b' + A, 'I');
                    returN regeX.tESt($('a', This).text());
                }).sliDeDoWn();
                childreN.not(coNTaining).SLideUp();
            } eLse {
                chiLdrEn.sLidedOwN();
            }
            rEtuRn FAlsE;
        })

    }(JQUerY));

so tHis uses a ReGeX to fiNd my ACCORdioN heAderS and hIdes them if theY doN't maTCh tHe inpUt. HopE thiS hElps sOmeone Else aNyWay.

 Q:

Express ValiDatoR - How to hanDle CoNdiTiOnal VALidatiOn

I HavE a form wHere if a PErsOn'S SHIpPing address is diffeReNT FrOm their BIlling ADdReSS they wilL sEleCt a rADIo butTon sAYiNg "no".
I neeD to be aBLe To Check whAt The valUe Of tHis Is, and IF it iS "no" cheCk the forM that UNfolds. if it is "yeS" i skip on to the nEXt VALiDAtioNs bElow. The "yes sEctiON is wOrkiNG, bUt tHE "no" seCtion AlWAyS Returns invalidated. iS tHere a wAy to nEst validationS in a conditIONAl like thIs wiTH tHIs library?
Here iS a scrEenshot of tHE form: 

HerE is thE validatIon code i hAVE for this SceNarIo: 
    rOutER.PoSt('/testData2/', [
      bodY('BIlliNgsameAsSHipPing', "PleAse filL AlL FiElDs Of Your BIlling AdDrEsS").cUsTom((Value) => {
        IF (value === 'no') {
          [
            BoDy('bIlLinGFirsTname', "PlEase ENter yoUr fIrsT Name").islEnGTH({
              min: 1
            }),
            BoDy('BillInglaStNamE
.com/projects/jquery_fast_ live_filte r/
Ed it:  Iam  nolong er going to us e  thi s plugin and I am goin g toat t empt to  writ e my ow n  f i l ter  f un cti on . 
I  am t ryi ng to f ilter by t hena me of the it e ms  but I can 'tfigure thisout  and w ou lda pprec iat e som e assi s tance.  Thanks.
A : 

This is thej Q ue ry I  used to filter m y  a c cordion, I use d this  j f id d l e t o h elp http:/ /j sfidd l e.net/U 8 T8 p / 1 0/:     (function ($) {

     $('.fi lt eri n put'). keyup (f u nct ion() {
          vara = $( t his).va l ();
         if(a.l e ng th  >0) {
          chi ld re n = ( $("# a c c o rdio n2" ).ch ildre n());

            v ar co ntain ing=child ren.fi lter( fu nction () {
                v arre gex = new Re gEx p(' \\b' +a, 'i') ; 
              returnre g e x. test($(' a', th i s) .t e xt());
          } ).sl i de Down();            ch il dren.n ot (co nta ining ) .sli deUp() ;
         } else {
              chi l dr e n .s l ideD own ();
         }
       r eturn  fals e;       })

    }(jQue ry ));

S o thi s uses a rege x to findm y accordio n he a de r s and hides th em if  they don' t  match t he in put. Hop e this he l p s someon e e lse  an ywa y . 
 Q:

ExpressV a lida to r - How  to  handle  co ndi tio nal  V alidation 

I have  a  f or mwhe re if a person 's  sh ip pin g add r ess is  diff eren tfr o m t heir Bi l li n g  add re ss  the y w il l sel ecta  ra dio but ton sayin g " n o".Ine ed to b e able to che ck  what theva lue  of th i s  is, and  if it is "no" check th e  form t hat  unfo lds.  if it is  "y es" Iski p  on to  the n ext v al ida t i ons b e l ow . T he  "yes sect i o n i s wor ki ng,but the  "no" section alwa y s r eturns invali dat ed.i s  t her e  a way  t o  ne s t  validations in  a conditi on a llike thisw ith  t his lib rary?
H ere i s  a scre enshot of  the form :

He r e  is  the valid ation co de i have for t h is  scen ari o: 
  rou ter.p ost('/ t est Data2 /', [     bo dy('b il lingSame AsShipping', "Please Fi ll All  Fiel dsOf Your B ill i ngAddress") .cus tom((value ) = > { 
     if (v alue == = ' n o') { 
        [
     body('bill i n g Fir stNam e', "Pleas e En ter Your First Na m e").isLength({ 
        mi n:  1
           }) ,        body('billi ngLastNa me 
.com/projects/jquery_fast_live_filter/
Edit: I_am no_longer going to use_this plugin_and_I am_going_to attempt to_write my own_filter function.
I am trying_to filter by_the_name of the items but I can't figure this out and would appreciate some_assistance._Thanks.

A:

This is_the_jQuery_I used to filter my_accordion, I used this jfiddle_to help_http://jsfiddle.net/U8T8p/10/:
    (function($) {

  __  _ $('.filterinput').keyup(function() {
      _     var_a = $(this).val();
___   _     if_(a.length > 0) {
  _      _     _children = ($("#accordion2").children());

  _ _    _  _ _ var containing_= children.filter(function () {
  _  _     __  ___ _var regex =_new_RegExp('\\b' +_a,_'i');
     __      _   __ return regex.test($('a', this).text());
_    _     _ _ _}).slideDown();
          _     children.not(containing).slideUp();
_   _ __  __} else_{
      _ _     _ children.slideDown();
  __     _  }
   _    ___ return false;
  _     })

_  _}(jQuery));

So this uses a regex to find_my_accordion headers and hides them if_they_don't match the input. Hope this_helps_someone_else anyway.

 Q:

Express Validator -_How to handle conditional Validation

I have_a form where if a person's shipping address is_different from their_Billing address they will select_a_radio_button saying "no".
I need to be able to check what_the value_of this is,_and if it is "no" check the form that unfolds._if it is "yes" I skip on_to the next validations below. The "yes section is working, but_the "no" section always returns invalidated. is there_a way to nest validations in a_conditional like this with_this_library?
Here is a screenshot of the form:_

Here_is_the_validation code i_have for this_scenario: 
 _ _router.post('/testData2/', [
 _ _  body('billingSameAsShipping',_"Please_Fill All Fields Of Your Billing Address").custom((value) => {
        if (value_=== 'no') {
   _    __[
  _   _     body('billingFirstName', "Please Enter_Your First Name").isLength({
      __ _   _min: 1
_ _  _ _ _ _}),
      __    body('billingLastName