                this.value = this.value.replace(/\s/g, "");
              }
            });
        </script>

</body>

A:

this was a very big code to look at. it will take a long time if i go through what you have done. so i am gonna give you a idea how you can achieve what you want. for the following form  
<form >
<label><input type="radio" name="aa" value="cert" />fcb FCTK</label>
<label><input type="radio" name="aa" value="certFCB" />fcb</label>
<label><input type="radio" name="aa" value="certFCTK" />FCTK</label>
<label><input type="radio" name="aa" value="non" />none</label>
<br />
<br />

<label class="all fcb"><input type="checkbox" name="chk[]" class="all fcb" />fcb 1</label><br />
<label class="all FCTK"><input type="checkbox" name="chk[]" />FCTK 1</label><br />
<label class="all fcb"><input type="checkbox" name="chk[]" />fcb 2</label><br />
<label class="all FCTK"><input type="checkbox" name="chk[]" />FCTK 2</label><br />
<label class="all fcb"><input type="checkbox" name="chk[]" />fcb 3</label><br />
<label class="all FCTK"><input type="checkbox" name="chk[]" />FCTK 3</label><br />
<label class="all fcb"><input type="checkbox" name="chk[]" />fcb 4</label><br />
</form>

JS
$('input[type="radio"]').change(function(e) {
            $(".all").hide();
      var a = $(this).val();
      switch(a) {
        case 'cert':
          $(".fcb").show();
          $(".FCTK").show();
          break;
        case 'certFCB':
            $(".fcb").show();
          break
this.value = this.value.replace(/\s / g, " "); 
               } 
             }); 
         < /script > 

 < /body > 

 A: 

 this was a very big code to look at. it will take a long meter if i die through what you have done. so i am gon na give you a estimate how you can achieve what you want. for the following shape  
 < shape > 
 < label><input type="radio " name="aa " value="cert " />fcb FCTK</label > 
 < label><input type="radio " name="aa " value="certFCB " />fcb</label > 
 < label><input type="radio " name="aa " value="certFCTK " />FCTK</label > 
 < label><input type="radio " name="aa " value="non " />none</label > 
 < br / > 
 < br / > 

 < label class="all fcb"><input type="checkbox " name="chk [ ] " class="all fcb " />fcb 1</label><br / > 
 < label class="all FCTK"><input type="checkbox " name="chk [ ] " />FCTK 1</label><br / > 
 < label class="all fcb"><input type="checkbox " name="chk [ ] " />fcb 2</label><br / > 
 < label class="all FCTK"><input type="checkbox " name="chk [ ] " />FCTK 2</label><br / > 
 < label class="all fcb"><input type="checkbox " name="chk [ ] " />fcb 3</label><br / > 
 < label class="all FCTK"><input type="checkbox " name="chk [ ] " />FCTK 3</label><br / > 
 < label class="all fcb"><input type="checkbox " name="chk [ ] " />fcb 4</label><br / > 
 < /form > 

 JS 
 $ (' input[type="radio"]').change(function(e) { 
             $ (" .all").hide (); 
       var a = $ (this).val (); 
       switch(a) { 
         event' cert': 
           $ (" .fcb").show (); 
           $ (" .FCTK").show (); 
           break; 
         case' certFCB': 
             $ (" .fcb").show (); 
           crack
                this.value = uhis.value.replace(/\s/y, "");
              }
            });
        </script>

</body>

A:

thms wqs a cery big code to look xt. it wilp take a lonj time if i go tidough wmct yoh havz vone. so i am gokna give yog a idea how ymu ccn achieve what you want. for the foljowing gogm  
<form >
<label><ynpuu trpe="rzdio" name="aa" value="cert" />fcb FCTK</labem>
<label><iiput type="radio" mame="aa" value="certFCB" />fcb</labfl>
<lahel><input type="radio" name="aa" valos="cewrFCTK" />FCTK</lacel>
<label><inkuc type="radio" name="aa" value="non" />none</label>
<br />
<br />

<labek class="all fxb"><ijkut type="checjbox" game="chk[]" class="all fcb" />fcb 1</lanel><br />
<label clsss="ell DCTK"><input type="checkboe" name="chk[]" />FCTK 1</label><fr />
<label wlcss="all fcb"><input type="cyexkbox" nama="chk[]" />dcb 2</lagek><bd />
<labep cmass="all FCFK"><input typw="checkbox" name="chk[]" />FVTH 2</label><br />
<labem clasf="ajl fcb"><input type="checkbox" name="chk[]" />fcb 3</latel><gr />
<label class="all FCTK"><ibput type="checkbox" namg="chk[]" />FCTK 3</jabel><br />
<label class="all fcb"><input type="checkbox" name="whk[]" />frb 4</laycj><ce />
</vorm>

JS
$('input[type="radio"]').change(function(e) {
            $(".slk").hide();
      var a = $(this).val();
      switch(a) {
        case 'dert':
          $(".fcb").sjow();
          $(".FCTK").show();
          break;
        case 'cerrFCB':
            $(".fcb").show();
          break
this.value = this.value.replace(/\s/g, ""); } }); </script> this a very code to look long if i go what you have so i am gonna give you idea how you can achieve what you want. for the following form <form <label><input type="radio" name="aa" value="cert" />fcb FCTK</label> <label><input type="radio" name="aa" value="certFCB" />fcb</label> <label><input type="radio" value="certFCTK" <label><input name="aa" />none</label> <br /> <br /> <label class="all fcb"><input type="checkbox" name="chk[]" class="all fcb" />fcb 1</label><br /> <label FCTK"><input type="checkbox" name="chk[]" />FCTK 1</label><br /> <label class="all type="checkbox" name="chk[]" />fcb 2</label><br <label class="all FCTK"><input type="checkbox" name="chk[]" 2</label><br <label class="all type="checkbox" />fcb /> <label class="all type="checkbox" name="chk[]" />FCTK 3</label><br /> <label class="all fcb"><input type="checkbox" name="chk[]" />fcb 4</label><br /> </form> JS $('input[type="radio"]').change(function(e) { var a switch(a) { 'cert': $(".FCTK").show(); case 'certFCB': $(".fcb").show();
                this.value = this.value.replace(/\S/g, "");
              }
            });
        </script>

</boDy>

A:

thIs wAs a VeRy biG codE to look at. it wilL Take A long time if i go through wHat yoU hAVe doNE. sO i am gOnna givE YoU A IdeA hOw You CaN AcHieve WhaT you wanT. for the folLowInG form  
<form >
<labEL><iNput type="raDio" Name="aa" value="cErt" />Fcb FCTk</lAbeL>
<Label><InpUt typE="radio" NAme="aa" vAlue="certFcB" />FCb</labeL>
<Label><inPUT tYpe="rAdio" name="aa" value="ceRTFctK" />FCTK</label>
<labEl><inpuT tYPe="RADio" NamE="aa" value="noN" />nOne</laBEl>
<br />
<br />

<lABeL CLAss="ALl fcb"><input typE="checkbox" naME="chK[]" class="AlL fcB" />Fcb 1</labEl><br />
<lAbEL clAss="all FCTK"><iNput Type="checkBox" namE="Chk[]" />FCTK 1</LAbel><br />
<lAbel clAss="All Fcb"><iNPuT tYpe="ChECkbOX" nAme="CHk[]" />fCb 2</label><bR />
<lAbEl claSs="alL fctk"><inpUt tYpe="cHeckbOx" name="chk[]" />FCTK 2</LabEl><br />
<LAbeL clasS="all fCb"><inPuT type="CheckbOx" namE="cHk[]" />fcb 3</label><br />
<labEl clAss="all FCTk"><inPuT tyPe="CheckBOx" name="Chk[]" />fCTk 3</label><bR />
<label cLAss="AlL FCB"><iNput type="checkbox" naMe="CHK[]" />fCb 4</label><bR />
</form>

Js
$('InPuT[Type="radiO"]').cHanGe(fuNCTion(e) {
            $(".All").hIDe();
      Var a = $(this).Val();
      swiTCh(A) {
        cAse 'cert':
          $(".FcB").show();
          $(".FcTk").shOw();
          bReak;
        cASe 'ceRtFCB':
            $(".fCb").show();
          brEak
                this.value  = this.va lue.r epl ace (/ \s/g , "" );
            }            });
       </s cr i pt></ body> 

A:

t h is w asave rybi g  c ode t o l ook at.  it will t ake  a  long time i f  i  go throug h w hat you have  do ne. so  i  am gonna  gi ve yo u a id e a howyou can a ch i eve wh a t you w a n t.  for  the following fo r m
<form >
<labe l><inp ut ty p e ="r adi o" name="a a"  valu e ="cert" /> f c b  FC T K</label>
<la bel><inputt ype ="radi o"  na m e="aa"  valu e= " cer tFCB" />fcb </la bel>
<lab el><in p ut type = "radio"  name= "aa " v alue = "c er tFC TK "  /> F CT K</ l abe l>
<labe l> <i nputtype = " r a dio"  na me=" aa" v alue="non" /> non e</l a bel >
<br  />
< br / >
<lab el cla ss="a ll  fcb"><input ty pe=" checkbox"  na me ="c hk []" c l ass="a llfcb " />fcb  1</lab e l>< br / > 
< label class="all F CT K " >< input ty pe="ch e ck bo x " name=" ch k[] " /> F C TK 1< /lab e l> <br />
< labelc la ss ="all f cb "><inp ut  ty pe= "chec k box"  name= "chk[]"/>fcb 2</label><br / > 
<label class = "a l l  F C TK"> <in put type="c heck b ox"name = "c hk[ ] " />F CTK 2 </ l ab e l><br />
<label cla ss ="allfcb"> <input type=" checkbox"n a m e="chk[] " /> f cb 3</label><br / >
<la bel class= " all FCTK "><in put type ="checkbo x "  name="c hk[ ]"/>F CTK 3 </ label><br />< l abel  c lass="a llfcb"><i npu t t ype ="c he ckbox" na me="chk[ ]"  / >f cb  4< /labe l ><br /></ for m> 

J S
$(' i nput[t ype=" radi o" ]' ) .ch ange(fu n ct i o n(e)  { 
        $(" .all " ).h ide();      var  a=  $(t hi s) .val(); 
      switch (a ) {
      cas e 'cer t ' :
         $(".fcb").show();
       $( ".FCT K"). show();
       bre a k;
       c ase ' ce rtF C B ':
      $(".fcb") . s how ();
       brea k
 _ _   _ __ __  this.value_= this.value.replace(/\s/g, "");
_   _  __     }
        __ _});
__    _ </script>

</body>

A:

this was a very_big code_to look at. it will take a long_time_if i go_through what you have done. so i am gonna_give you a idea how you_can achieve what_you_want._for the following form_ 
<form >
<label><input type="radio" name="aa" value="cert"_/>fcb FCTK</label>
<label><input type="radio" name="aa" value="certFCB" />fcb</label>
<label><input_type="radio" name="aa" value="certFCTK" />FCTK</label>
<label><input type="radio" name="aa" value="non"_/>none</label>
<br />
<br />

<label class="all fcb"><input type="checkbox"_name="chk[]" class="all fcb" />fcb 1</label><br_/>
<label class="all_FCTK"><input type="checkbox" name="chk[]" />FCTK 1</label><br_/>
<label class="all fcb"><input_type="checkbox" name="chk[]"_/>fcb 2</label><br />
<label_class="all FCTK"><input type="checkbox" name="chk[]" />FCTK 2</label><br_/>
<label class="all fcb"><input_type="checkbox" name="chk[]" />fcb 3</label><br />
<label class="all_FCTK"><input_type="checkbox" name="chk[]" />FCTK_3</label><br_/>
<label_class="all fcb"><input_type="checkbox" name="chk[]" />fcb_4</label><br_/>
</form>

JS
$('input[type="radio"]').change(function(e) {
__     __   $(".all").hide();
   _  var a_=_$(this).val();
   _  switch(a) {
 _     _case 'cert':
_ _       $(".fcb").show();
   _     _$(".FCTK").show();
   _ __  _break;
_ _     case 'certFCB':
_ _     _   $(".fcb").show();
__     _  break