Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // verifica se o input checked foi clicado
- $("input[name^='sofa']").on('click', function() {
- // verifica se esta "checado"
- if ($(this).is(":checked"))
- $("select[name='tempo-sofa']").attr("disabled", false); // habilita o select
- else
- $("select[name='tempo-sofa']").attr("disabled", true); // desabilita o select
- });
Add Comment
Please, Sign In to add comment