SHARE
TWEET

Untitled

a guest Jun 18th, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <input type="text" name="pr" id="pr" />
  2.    <select  class="form-control" name ="rt" id="rt">
  3.    <option value = "0" selected>No</option>
  4.    <option value = "1">Yes</option>
  5.    </select>
  6.     <input type="number" name="at" id="at"/>
  7.  
  8.     <script>
  9.     $('#pr, #rt, #at').change(function(){
  10.     var pr1 = document.getElementById('#pr').value
  11.     var rt1 = document.getElementById('#rt').value;
  12.     var at1 = document.getElementById('#at').value;
  13.  
  14.     var rr = pr+at;
  15.  
  16.     if(rt1 == 1){
  17.         $pr.value = rr;
  18.     }else{
  19.         $pr.value = pr1;
  20.     }
  21.  
  22.     });
  23.    </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top