vendredi 11 septembre 2015

checked checkbox value shown in input textbox and uncheck will another place

i have two page one page home page another page defaults results . i have check box in home page . its code looks like

 <div class="col-md-1 padding-lft" style="right:13px;top:3px">
      <input id="chkUFtoLoan-1" name="S"  value="S" type="checkbox" checked /> 
 </div>

i have passed this value another page looks like

<?php 
     $checkbox1 = $_POST["S"];
     echo $checkbox1 = $_POST["S"];
?>

Now i have results two section BUYER CLOSE TO SECTION and ABOUT YOUR LOAN. in results page i have value UPFRONT MIP VALUE

ABOUT YOUR LOAN

  <div class="row content green">
      <label id="Label3" for="purchasePrice" class="pull-left ">Upfront MIP Financed</label>


  <label id="financedmip-Buyer"  class="pull-right">$<?php echo round($arrFirstBox["upfrontmipamt"],2);?>

BUYER CLOSE TO SECTION

 <label id="Label3" for="purchasePrice" class="pull-left ">Upfront MIP Financed</label>
 <label id="financedmip-Buyer"  class="pull-right">$<?php echo round($arrFirstBox["upfrontmipamt"],2);?>

Both value same if user checked check box home page value goes to about your loan or user checkbox unchecked values BUYER CLOSE TO SECTION. i have written script code

$('input[Name="S"]').mouseenter(function() { 
    var text = "";
    $('#financedmip:checked').each(function(){
        text += $(this).val('<?php echo round($arrFirstBox["upfrontmipamt"],2);?>')+',';
    });
    text = text.substring(0,text.length-1);

    $('#financedmip-Buyer').val(0);
});

MY script i did mistake please any one find what mistake did? please any one find my mistake ?




Aucun commentaire:

Enregistrer un commentaire