SHARE
TWEET

MW

a guest Aug 14th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   <div class="progress">
  2.     <div id="mybar" class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width:0">
  3.     </div>
  4.   </div>
  5.  
  6.  
  7.  
  8. <script>
  9. $(document).ready(function(){
  10.  
  11.     $("#div1").load("../wager.txt");
  12.    
  13. });
  14. </script>
  15. <script>
  16. document.getElementById("mybar").style.width = "50%";  <!-- i want value from wager.txt (div1) instead of 50% -->
  17. </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