Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var update_pizza = function () {
- if ($("#pizza").is(":checked")) {
- $('#pizza_kind').attr('disabled', false);
- } else {
- $('#pizza_kind').attr('disabled', true);
- }
- };
- $(update_pizza);
- $("#pizza").change(update_pizza);
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement