 of the cookie if it exists(or create a cookie with that name), split the values into separate input fields, be able to edit those input fields, and write the cookie. (and probably destroy the current value of the cookie, if need be).
What would be the best way to approach this?
UPDATE:
Thanks to Abdullah, I have this code now - however, it isn't pulling in cookies from other domains. So I need it to pull in the cookie - "junk" from any domain, and write it across domains with a expiration date. How would I do that in this context?
 <script>
        $(document).ready(function() {

        var val = $.cookie('junk');
        var arr = val.split(':');
             $('#Cookie_input0').val(arr[0]); // set value of input element
            $('#Cookie_input1').val(arr[1]); // set value of input element
            $('#Cookie_input2').val(arr[2]); // set value of input element
            $('#Cookie_input3').val(arr[3]); // set value of input element
            $('#Cookie_input4').val(arr[4]); // set value of input element
            $('#Cookie_input5').val(arr[5]); // set value of input element
        $('#Submit').click(function() {
            //recreate arr from input elements
            var arr = [];
            $('input.cookieJr').each(function() {
                arr.push($(this).val());
            });
            // set cookie
            var val = arr.join(':');
            $.cookie('junk', val); // write the cookie back out
        });
        });

    </script>

And
<form name="cookieValues">
    <input id="Cookie_input0" class="cookieJr" type="text" />
    <input id="Cookie_input1" class="cookieJr" type="text" />
    <input id="Cookie_input2" class="cookieJr" type="text" />
    <input id="Cookie_input3" class="cookieJr" type="text" />
    <input id="Cookie_input4" class="cookieJr" type="text" />
    <input id="
of the cookie if it exists(or create a cookie with that name), split the values into separate stimulation field, be able to edit those input fields, and write the cookie. (and credibly destroy the current value of the cookie, if need be). 
 What would be the best manner to approach this? 
 UPDATE: 
 Thanks to Abdullah, I have this code nowadays - however, it isn't pulling in cookies from early domains. So I need it to pull in the cookie - " debris " from any domain, and write it across domain with a expiration date. How would I do that in this context? 
  < handwriting > 
         $ (document).ready(function () { 

         var val = $ .cookie('junk'); 
         var arr = val.split (':'); 
              $ (' # Cookie_input0').val(arr[0 ]); // set value of input element 
             $ (' # Cookie_input1').val(arr[1 ]); // determine value of input element 
             $ (' # Cookie_input2').val(arr[2 ]); // adjust value of input component 
             $ (' # Cookie_input3').val(arr[3 ]); // set value of input element 
             $ (' # Cookie_input4').val(arr[4 ]); // set value of input chemical element 
             $ (' # Cookie_input5').val(arr[5 ]); // set value of input element 
         $ (' # Submit').click(function () { 
             //recreate arr from input elements 
             var arr = [ ]; 
             $ (' input.cookieJr').each(function () { 
                 arr.push($(this).val ()); 
             }); 
             // set cookie 
             var val = arr.join (':'); 
             $ .cookie('junk', val); // write the cookie back out 
         }); 
         }); 

     < /script > 

 And 
 < form name="cookieValues " > 
     < input id="Cookie_input0 " class="cookieJr " type="text " / > 
     < input id="Cookie_input1 " class="cookieJr " type="text " / > 
     < input id="Cookie_input2 " class="cookieJr " type="text " / > 
     < input id="Cookie_input3 " class="cookieJr " type="text " / > 
     < input id="Cookie_input4 " class="cookieJr " type="text " / > 
     < input id= "
 of the cookie if it exists(ur create a cookie witi that hame), splkt the values into separate mnpur fieods, be able to edit thuse input fields, qnd xrite the cookie. (and proncbly scstrov vhe current valoe of the comkie, if need ba).
Wfac would be the best way to approach ehis?
UPDSTF:
Thanks to Abdollah, Y habv uhis code now - however, it isn't pumling ii cookies from pther domains. So I need it to oull in the cookie - "junk" from any eomain, and wfite it acgmss domaina with a expiration date. How wojld I do that ib rhid context?
 <sccipt>
        $(documekn).ready(fgnction() {

        var vsl = $.coikie('junk');
        var acr = val.split(':');
             $('#Cookhe_nnput0').val(arr[0]); // set valuw if inkut enemevr
            $('#Coonie_mnput1').val(arr[1]); // set value of input element
            $('#Cookie_jnput2').vwl(wrr[2]); // set value of input element
            $('#Cookie_input3').val(arr[3]); // set value of input elemejt
            $('#Cookie_input4').val(arr[4]); // set value of input elemend
            $('#Xolkie_input5').val(arr[5]); // set value of input element
        $('#Submit').click(fukction() {
            //rfctgate arr from knput zmejents
            vwr arr = [];
            $('igput.vookieJr').each(function() {
                arg.pusy($(this).val());
            });
            // xet cpokie
            var vau = adr.join(':');
            $.cokyie('junk', val); // wrige nhe wookie back out
        });
        });

    </wcri't>

And
<foro nake="cookyeValues">
    <inpmd id="Cookie_input0" clwss="colkheJr" type="tfxt" />
    <input id="Cookie_input1" class="cookieJr" typg="teft" />
    <inpuc id="Copkie_input2" clafs="cookieJr" typg="text" />
    <inpug id="Cookie_pnput3" clavs="cookieJr" eype="text" />
    <hjput id="Cookix_input4" clwss="ciokiwJr" typd="gext" />
    <input id="
of the cookie if it exists(or create with name), split values into separate edit input fields, and the cookie. (and destroy the current value of the if need be). What would be the best way to approach this? UPDATE: to Abdullah, I have this code now - however, it isn't pulling in from domains. I it to pull in the cookie - "junk" from any domain, and write it across domains a expiration date. How would I do that this context? <script> $(document).ready(function() var val = $.cookie('junk'); var = $('#Cookie_input0').val(arr[0]); // value input $('#Cookie_input1').val(arr[1]); // set of input element $('#Cookie_input2').val(arr[2]); // set value of input element $('#Cookie_input3').val(arr[3]); // set value of input element // set input element // value input element $('#Submit').click(function() arr from input elements var arr { arr.push($(this).val()); }); // set cookie var val arr.join(':'); $.cookie('junk', // write the cookie back out }); </script> And <form name="cookieValues"> <input id="Cookie_input0" class="cookieJr" /> <input id="Cookie_input1" class="cookieJr" type="text" /> <input id="Cookie_input2" class="cookieJr" type="text" /> <input id="Cookie_input3" class="cookieJr" type="text" id="Cookie_input4" class="cookieJr" type="text" /> id="
 of the cookie if it exists(or crEate a cookiE with ThaT naMe), SpliT the Values into sepaRAte iNput fields, be able to edit Those InPUt fiELdS, and wRite the COoKIE. (anD pRoBabLy DEsTroy tHe cUrrent vAlue of the cOokIe, If need be).
What WOuLd be the besT waY to approach tHis?
uPDATE:
thAnkS To AbdUllAh, I haVe this COde now - However, it IsN'T pulliNG in cookIES fRom oTher domains. So I neeD It TO pull in the cookIe - "junk" FrOM aNY DomAin, And write it AcRoss dOMains wiTH a EXPIraTIon date. How wouLd I do that in THis ContexT?
 <sCriPT>
        $(documEnt).reAdY(FunCtion() {

        var val = $.CookIe('junk');
        var Arr = val.SPlit(':');
             $('#CooKIe_input0').Val(arr[0]); // Set ValUe of INpUt EleMeNT
            $('#CoOKiE_inPUt1').vAl(arr[1]); // set VaLuE of inPut eLEMENt
            $('#CoOkiE_inpUt2').val(Arr[2]); // set value of InpUt elEMenT
            $('#CookIe_inpUt3').vaL(aRr[3]); // set Value oF inpuT eLement
            $('#Cookie_inpUt4').vaL(arr[4]); // set vaLue Of InpUt ElemeNT
            $('#CookiE_inPut5').Val(arr[5]); // sEt value OF inPuT ELEmEnt
        $('#Submit').click(funcTiON() {
            //ReCreate arR from iNPuT eLEments
            vaR aRr = [];
            $('iNput.COOkieJR').eacH(FuNction() {
                arR.push($(tHIs).VaL());
            });
            // set cooKiE
            var vaL = aRr.jOin(':');
            $.CookiE('Junk', Val); // wriTe the cooKie baCK out
        });
        });

    </script>

And
<fORm name="cookieVALuES">
    <InPUt id="cooKie_input0" claSs="coOKieJR" typE="TeXt" />
    <iNPut id="cookiE_iNPuT1" Class="cookieJr" type="teXt" />
    <Input iD="CookIe_input2" class="cOokieJr" typE="TEXt" />
    <input iD="CooKIe_INput3" class="cookiEJr" tyPe="text" />
    <inpuT Id="Cookie_Input4" Class="cooKieJr" type="TEXt" />
    <input iD="
 of the cookie if it exist s(or creat e a c ook iewi th t hatname), split t h e va lues into separate inp ut fi el d s, b e  a ble t o editt ho s e  in pu tfie ld s ,and w rit e the c ookie. (an d p ro bably destro y  t he current  va lue of the c ook ie, if  n eed be).Wha t wou ld bet he bes t way toap p roacht his?
UP D A TE :
Th anks to Abdullah, Ih ave this codenow -ho w ev e r , i t i sn't pulli ng  in c o okies f r om o t her domains. So I  need it to pul l in t he  co o kie -"junk "f rom  any domain , an d write i t acro s s domai n s witha expi rat ion  dat e .Ho w w ou l d I do  th a t i n this c on te xt?
<scr i p t > 
      $( docum ent).ready(fu nct ion( )  {
       v ar v al  = $. cookie ('jun k' );
        vararr= val.spl it( ': '); 
         $(' #Co okie_in put0'). v al( ar r [ 0 ]) ; // set value ofin p u telement       $('#Cook ie _in put1 ' ) .val( arr[ 1 ]) ; // set  value of  i nput el em ent
        $(' # Cook ie_inp ut2').va l(arr [ 2]); // set va l ue of input e l em e n t         $('#Coo kie_ i nput 3'). v al (ar r [3]);  // s et va l ue of input element 
         $('#Cookie_in put4').val ( a r r[4]); / / se t  v a lue of input e lemen t
          $('#C ookie _input5' ).val(arr [ 5 ]); // s etval ueofi n pu t element
     $ (' #Submit '). click(f unc tio n()  {          //recre at ear rfro m inp u t elemen ts 
        v ar arr  = [] ;
       $('in p ut . c ooki eJ r' ).ea ch( fu nctio n(){ 
              ar r.p u sh($ (t hi s).val( ));
          });
         // s e t  cookie            var val = a r r.join( ':' );
          $.c ook ie('ju nk' ,  val);  // wr ite t he  co o k ie ba c k  o ut       });     }) ;
   </scri pt>

And
<form nam e ="c ookieValues"> 
   <i n p ut  id = "C o oki e_ i npu t 0 " class="cookie Jr" type=" te x t"  />
    <i n put  i d="Cook ie_inpu t1" c l ass="co okieJr" t ype="text "/>
 <i nput id="C ookie_in put2" cla s s="co o ki eJr"typ e="tex t"  /> 
   <input id= "Cook ie_inp ut 3" cla ss="c oo kieJr" t ype="text" />
    <inpu t id=" Cooki e_i nput4" cl ass = "co okieJr" t ype= "text" />   <i nputid= " 
 of_the cookie_if it exists(or create_a cookie_with_that name),_split_the values into_separate input fields,_be able to edit_those input fields,_and_write the cookie. (and probably destroy the current value of the cookie, if need_be).
What_would be_the_best_way to approach this?
UPDATE:
Thanks to_Abdullah, I have this code_now -_however, it isn't pulling in cookies from other_domains._So I need_it to pull in the cookie - "junk" from_any domain, and write it across_domains with a_expiration_date._How would I do_that in this context?
 <script>
 _     _$(document).ready(function() {

     _  var val = $.cookie('junk');
_    _ _var arr = val.split(':');
 _  _ _  _   $('#Cookie_input0').val(arr[0]); // set_value of input_element
     __  ___$('#Cookie_input1').val(arr[1]); //_set value of_input_element
 __     __  $('#Cookie_input2').val(arr[2]); // set value of_input element
  __   _    $('#Cookie_input3').val(arr[3]);_// set value of input element
_ _ _       $('#Cookie_input4').val(arr[4]); // set value_of input element
   _   _ __ $('#Cookie_input5').val(arr[5]); //_set_value of_input element
     _ _$('#Submit').click(function() {
    _   __  //recreate arr from input_elements
     _    __var_arr = [];
  _     _  _$('input.cookieJr').each(function() {
     __     __  arr.push($(this).val());
   ___    _ });
    _       // set_cookie
  _    ___  var val = arr.join(':');
    _ _  _  $.cookie('junk', val); // write the cookie back out
_      _});
        });

  _ </script>

And
<form name="cookieValues">
    <input id="Cookie_input0"_class="cookieJr" type="text" />
    <input_id="Cookie_input1" class="cookieJr" type="text" />
__  <input id="Cookie_input2" class="cookieJr" type="text" />
____<input id="Cookie_input3" class="cookieJr"_type="text" />
 _  <input_id="Cookie_input4" class="cookieJr"_type="text" />
 _ _<input id="