SHARE
TWEET

Untitled

a guest Jul 18th, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <label class="radio">
  2.   <input type="radio" id="frete_radio" name="frete_radio" value="1">
  3.   <span>a</span>
  4. </label>
  5. <label class="radio">
  6.   <input type="radio" id="frete_radio" name="frete_radio" value="2">
  7.   <span>b</span>
  8. </label>
  9.      
  10. <button type="submit" id="btn-finalizar" disabled="disabled">
  11.      
  12. <script type="text/javascript">
  13.     $(document).ready(function() {  
  14.         $("input[type=radio]").bind("click", function(){        
  15.             if($("input[type=radio]:checked").val() == "frete_radio") {
  16.                 $("#btn-finalizar").attr({disabled: true});
  17.             } else {
  18.                 $("#btn-finalizar").attr({disabled: false});
  19.             }
  20.         });
  21.     });
  22. </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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top