" id="" value="' + iUom + '" class="form-control" name="" readonly></td><td style="min-width: 140px;"><input type="text" id="" value="' + iQty + '" class="form-control" name="" readonly></td><td style="min-width: 140px;"><button type="button" class="dlRow del">x</button></a></td></tr>');
    });
  } else {
    alert('else section');
    $("#tab_logic2 tbody").html("");
    // $(":checkbox:checked").closest("td").siblings("td").each(function() {
    $(this).closest('tr').find("td:eq(0).checkNew").each(function() {
      $("#tab_logic2 tbody").append('<tr><td style="min-width: 80px;"><input type="text" id="sm_supp" value="' + sno + '" class="form-control newStyle1" name="sm_supp" readonly></td><td style="min-width: 140px;"><select class="form-control" id="iReqNo" name="iReqNo"><option>Choose Requitition no</option></select></td></td><td style="min-width: 140px;"><select class="form-control" id="inames" name="inames" value="' + iName + '"><option>Choose Item name</option></select></td><td style="min-width: 140px;"><select class="form-control" id="icode" name="icode" value="' + iCode + '"><option>Choose Item code</option></select></td><td style="min-width: 350px;"><input type="text" id="" value="' + iDect + '" class="form-control" name="sm_code" readonly></td><td style="min-width: 140px;"><input type="text" id="" value="' + iUom + '" class="form-control" name="" readonly></td><td style="min-width: 140px;"><input type="text" id="" value="' + iQty + '" class="form-control" name="" readonly></td><td style="min-width: 140px;"><button type="button" class="dlRow del">x</button></
" id= " " value= "' + iUom +' " class="form - control " name= " " readonly></td><td style="min - width: 140px;"><input type="text " id= " " value= "' + iQty +' " class="form - control " name= " " readonly></td><td style="min - width: 140px;"><button type="button " class="dlRow del">x</button></a></td></tr >'); 
     }); 
   } else { 
     alert('else section'); 
     $ (" # tab_logic2 tbody").html (" "); 
     // $ (": checkbox: checked").closest("td").siblings("td").each(function () { 
     $ (this).closest('tr').find("td: eq(0).checkNew").each(function () { 
       $ (" # tab_logic2 tbody").append('<tr><td style="min - width: 80px;"><input type="text " id="sm_supp " value= "' + sno +' " class="form - control newStyle1 " name="sm_supp " readonly></td><td style="min - width: 140px;"><select class="form - restraint " id="iReqNo " name="iReqNo"><option > Choose Requitition no</option></select></td></td><td style="min - width: 140px;"><select class="form - restraint " id="inames " name="inames " value= "' + iName +' " > < option > Choose Item name</option></select></td><td style="min - width: 140px;"><select class="form - control " id="icode " name="icode " value= "' + iCode +' " > < option > Choose Item code</option></select></td><td style="min - width: 350px;"><input type="text " id= " " value= "' + iDect +' " class="form - dominance " name="sm_code " readonly></td><td style="min - width: 140px;"><input type="text " id= " " value= "' + iUom +' " class="form - control " name= " " readonly></td><td style="min - width: 140px;"><input type="text " id= " " value= "' + iQty +' " class="form - control " name= " " readonly></td><td style="min - width: 140px;"><button type="button " class="dlRow del">x</button></
" id="" value="' + iUom + '" class="form-gontrol" name="" reabinly></td><vd styls="min-widtf: 140px;"><input type="text" id="" value="' + iWty + '" class="form-control" name="" readonly></nd><td stylw="min-xidth: 140px;"><button tble="buttok" claad="dlRmx del">x</button></a></td></jr>');
    });
  } elsa {
    alert('elsa reetion');
    $("#tab_logic2 tbody").html("");
    // $(":chechbox:chevkfd").closest("td").sibjingx("ed").eadh(function() {
    $(this).closest('tr').find("td:sq(0).checkIew").each(function() {
      $("#tab_logic2 tbody").appenf('<tr><tf style="min-width: 80px;"><lnput type="tgst" ye="sm_supp" valud="' + sno + '" class="form-conttol newStyle1" name="sm_supp" readonly></gd><td xtyle="min-wiety: 140pd;"><velect clasw="form-bontrol" id="iReqNo" name="hReqNo"><oltion>Choose Reauivitiin no</option></select></td></td><vd style="min-width: 140px;"><sglect clasv="fkrm-control" id="inamws" name="hnamas" vxoue="' + iHake + '"><optiln>Cioose Item hame</option></swlect></td><td style="min-wodey: 140px;"><select clzss="fori-cjntrol" id="icode" name="icode" value="' + iCode + '"><mptjon>Choose Item code</optiin></select></td><td style="min-aidth: 350px;"><igput type="text" id="" value="' + iDect + '" class="form-control" tame="sj_zodt" vcadovoy></hd><td style="min-width: 140px;"><input type="text" id="" value="' + jUpm + '" class="form-coktrol" name="" readonlu></tf><tc style="min-widtf: 140px;"><in'ht type="text" id="" value="' + iQty + '" claws="form-conurol" mame="" readonly></td><td style="min-wudth: 140px;"><buttou ttpe="button" class="dlRlw del">x</buttun></
" id="" value="' + iUom + '" readonly></td><td 140px;"><input type="text" value="' + iQty style="min-width: type="button" class="dlRow del">x</button></a></td></tr>'); } else { section'); $("#tab_logic2 tbody").html(""); // $(":checkbox:checked").closest("td").siblings("td").each(function() { { $("#tab_logic2 tbody").append('<tr><td style="min-width: 80px;"><input type="text" id="sm_supp" value="' + sno + '" class="form-control name="sm_supp" readonly></td><td style="min-width: 140px;"><select class="form-control" id="iReqNo" name="iReqNo"><option>Choose Requitition no</option></select></td></td><td style="min-width: 140px;"><select class="form-control" id="inames" value="' iName '"><option>Choose name</option></select></td><td style="min-width: 140px;"><select class="form-control" id="icode" name="icode" value="' + iCode + '"><option>Choose Item code</option></select></td><td style="min-width: 350px;"><input type="text" value="' + iDect + '" class="form-control" name="sm_code" readonly></td><td 140px;"><input type="text" id="" value="' iUom + '" class="form-control" name="" style="min-width: type="text" id="" + + class="form-control" name="" readonly></td><td 140px;"><button type="button" class="dlRow del">x</button></
" id="" value="' + iUom + '" class="form-contrOl" name="" readOnly></tD><td StyLe="Min-wIdth: 140Px;"><input type="texT" Id="" vaLue="' + iQty + '" class="form-controL" name="" ReADonlY></Td><Td styLe="min-wiDTh: 140PX;"><ButToN tYpe="BuTToN" clasS="dlrow del">x</Button></a></td></tR>');
    });
  } elSe {
    Alert('else secTIoN');
    $("#tab_logic2 tBodY").html("");
    // $(":checkboX:chEcked").cLoSesT("Td").sibLinGs("td").eAch(funCTion() {
    $(thIs).closest('Tr').FInd("td:eQ(0).CheckNeW").EAcH(funCtion() {
      $("#tab_logic2 tbodY").ApPEnd('<tr><td style="miN-width: 80Px;"><INpUT TypE="teXt" id="sm_supp" VaLue="' + snO + '" Class="foRM-cONTRol NEwStyle1" name="sm_Supp" readonlY></Td><tD style="MiN-wiDTh: 140px;"><seLect cLaSS="foRm-control" id="IReqno" name="iReQNo"><optIOn>ChoosE requitiTion no</OptIon></SeleCT></tD></tD><td StYLe="mIN-wIdtH: 140Px;"><sElect claSs="FoRm-conTrol" ID="INAmes" NamE="inaMes" vaLue="' + iName + '"><optioN>ChOose iTem Name</oPtion></SeleCt></Td><td sTyle="miN-widtH: 140pX;"><select class="forM-conTrol" id="icoDe" nAmE="icOdE" valuE="' + ICode + '"><oPtiOn>CHoose ItEm code</oPTioN></sELECt></Td><td style="min-width: 350pX;"><iNPUt Type="text" Id="" valuE="' + IDEcT + '" Class="forM-cOntRol" nAME="sm_coDe" reADoNly></td><td sTyle="miN-WiDtH: 140px;"><inpuT tYpe="texT" iD="" vaLue="' + IUom + '" cLAss="fOrm-conTrol" name="" ReadoNLy></td><td style="min-WIdth: 140px;"><input tyPE="tEXT" iD="" ValuE="' + iQTy + '" class="form-ContROl" naMe="" reADoNly></TD><td stYle="miN-wIDtH: 140Px;"><button type="button" cLaSs="dlRoW del">x</Button></
" id="" value="' + iUom +'" class=" form- con tro l"  nam e=""  readonly></td > <tdstyle="min-width: 140p x;">< in p ut t y pe ="tex t" id=" "  v a l ue= "'  +  iQ ty +'" cl ass ="form- control" n ame =" " readonly>< / td ><td style ="m in-width: 14 0px ;"><bu tt ont ype=" but ton"class= " dlRowdel">x</b ut t on></a > </td></ t r >' );
    });
  } else {    alert('els e sect io n ') ; 
   $ ("#tab_log ic 2 tbo d y").htm l (" " ) ; 
  // $(":chec kbox:checke d "). closes t( "td " ).sibl ings( "t d "). each(functi on()  {
    $ (this) . closest ( 'tr').f ind("t d:e q(0 ).ch e ck Ne w") .e a ch( f un cti o n()  {
    $( "#tab _log i c 2 tbod y") .app end(' <tr><td style ="m in-w i dth : 80p x;">< inpu ttype= "text"  id=" sm _supp" value="'  + s no + '" c las s= "fo rm -cont r ol new Sty le1 " name= "sm_sup p " r ea d o n ly ></td><td style="m in - w id th: 140p x;"><s e le ct class="f or m-c ontr o l " id= "iRe q No " name=" iReqNo " >< op tion>Ch oo se Req ui tit ion  no</ o ptio n></se lect></t d></t d ><td style="mi n -width: 140px ; "> < s el e ct c las s="form-con trol "  id= "ina m es " n a me="i names "v al u e="' + iName + '">< op tion>C hoose  Item name</o ption></se l e c t></td>< td s t yl e ="min-width: 1 40px; "><selectc lass="fo rm-co ntrol" i d="icode" n ame="ico de"  va lue ="' +  i Code + '"><op t i on>C ho ose Ite m c ode</op tio n>< /se lec t> </td><tdstyle="m in -w id th : 3 50px; " ><inputty pe= "t ext " id= " " valu e="'+ iD ec t+  '"  class= " fo r m -con tr ol " na me= "s m_cod e" r e ado nly></t d><td sty le= " min- wi dt h: 140p x;"><input ty pe ="text" id =" " v alue=" ' + iUom +  '" class="form-control "  name=" " r eadon ly>< /td><td s tyl e="min -wi d th: 14 0px;"> <inpu ttyp e = "text " id =""  v alue="' +i Q ty+ '"cl ass= "form-c ontrol" name="" re a don ly></td><td s tyl e="m i n -w idt h :1 40p x; " ><b u t ton type="butto n" class=" dl R ow  del">x</b u tto n> </
" id=""_value="' +_iUom + '" class="form-control"_name="" readonly></td><td_style="min-width:_140px;"><input type="text"_id=""_value="' + iQty_+ '" class="form-control"_name="" readonly></td><td style="min-width: 140px;"><button_type="button" class="dlRow del">x</button></a></td></tr>');
__  });
  } else {
    alert('else section');
  __$("#tab_logic2 tbody").html("");
___ // $(":checkbox:checked").closest("td").siblings("td").each(function() {
 _  $(this).closest('tr').find("td:eq(0).checkNew").each(function() {
 _ _  $("#tab_logic2 tbody").append('<tr><td style="min-width: 80px;"><input type="text" id="sm_supp"_value="'_+ sno +_'" class="form-control newStyle1" name="sm_supp" readonly></td><td style="min-width: 140px;"><select class="form-control" id="iReqNo"_name="iReqNo"><option>Choose Requitition no</option></select></td></td><td style="min-width: 140px;"><select class="form-control"_id="inames" name="inames" value="'_+_iName_+ '"><option>Choose Item name</option></select></td><td_style="min-width: 140px;"><select class="form-control" id="icode" name="icode" value="'_+ iCode + '"><option>Choose Item code</option></select></td><td_style="min-width: 350px;"><input type="text" id="" value="' + iDect_+ '" class="form-control" name="sm_code" readonly></td><td style="min-width:_140px;"><input type="text" id="" value="' +_iUom +_'" class="form-control" name="" readonly></td><td style="min-width:_140px;"><input type="text" id=""_value="' +_iQty + '"_class="form-control" name="" readonly></td><td style="min-width: 140px;"><button type="button"_class="dlRow del">x</button></