Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement